Skip to content

Commit

Permalink
open new tabs in a new tab + update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelmerro committed Aug 13, 2019
1 parent 370a0c3 commit ab29e33
Show file tree
Hide file tree
Showing 4 changed files with 502 additions and 307 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,17 @@ Links in the changelog are part of [github.com/Jelmerro/Vieb](https://github.com
The [releases page](https://github.com/Jelmerro/Vieb/releases) also contains the most important changes per release,
but the list below contains much more technical details.

## [Unreleased](https://github.com/Jelmerro/Vieb/compare/0.5.0...master)

### Changed

- Tabs not requested to open in the foreground are now opened in a new tab

### Security

- Electron 6.0.2 (was 6.0.0-beta.15)
- Chromium 76.0.3809.110 (was 76.0.3809.74)

## [0.5.0](https://github.com/Jelmerro/Vieb/compare/0.4.0...0.5.0) - 2019-07-29

[code diff](https://github.com/Jelmerro/Vieb/compare/0.4.0...0.5.0) - [released builds](https://github.com/Jelmerro/Vieb/releases/tag/0.5.0)
Expand Down
6 changes: 5 additions & 1 deletion app/js/tabs.js
Expand Up @@ -395,7 +395,11 @@ const addWebviewListeners = webview => {
}
})
webview.addEventListener("new-window", e => {
navigateTo(e.url)
if (e.disposition === "foregroud-tab") {
navigateTo(e.url)
} else {
addTab(e.url)
}
})
webview.addEventListener("enter-html-full-screen", () => {
document.body.className = "fullscreen"
Expand Down

0 comments on commit ab29e33

Please sign in to comment.