diff options
author | 2020-04-29 18:15:46 +0000 | |
---|---|---|
committer | 2020-04-29 18:15:46 +0000 | |
commit | 5a197d26d364409cb1457c4b30041a8f298fba56 (patch) | |
tree | 3115e8d32be9ed06d1028c9539d8fdef42ce9c99 /src/stores | |
parent | docs: add gega7 as a contributor (#684) (diff) | |
download | ferdium-app-5a197d26d364409cb1457c4b30041a8f298fba56.tar.gz ferdium-app-5a197d26d364409cb1457c4b30041a8f298fba56.tar.zst ferdium-app-5a197d26d364409cb1457c4b30041a8f298fba56.zip |
Prevent unnecessary electron popup windows for links (#685)
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 0ad523374..a8d9cc1fb 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -631,7 +631,8 @@ export default class ServicesStore extends Store { | |||
631 | } | 631 | } |
632 | 632 | ||
633 | @action _openWindow({ event }) { | 633 | @action _openWindow({ event }) { |
634 | if (event.disposition !== 'new-window' && event.url !== 'about:blank') { | 634 | if (event.url !== 'about:blank') { |
635 | event.preventDefault(); | ||
635 | this.actions.app.openExternalUrl({ url: event.url }); | 636 | this.actions.app.openExternalUrl({ url: event.url }); |
636 | } | 637 | } |
637 | } | 638 | } |