summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-08-09 12:38:29 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-08-09 12:38:29 -0300
commite2940d7ee231dd8624675904153bfefb0a38f3c4 (patch)
tree16d8c168db82b04d160d16eef38edf97766acf7d
parent5dec7ac11971f53ea8583c24b9eceb8ff28a776c (diff)
downloadmullvadvpn-e2940d7ee231dd8624675904153bfefb0a38f3c4.tar.xz
mullvadvpn-e2940d7ee231dd8624675904153bfefb0a38f3c4.zip
Don't show notifications when window is visible
-rw-r--r--app/notification-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/notification-controller.js b/app/notification-controller.js
index eafdea0445..1d6138d404 100644
--- a/app/notification-controller.js
+++ b/app/notification-controller.js
@@ -9,7 +9,7 @@ export default class NotificationController {
const lastNotification = this._activeNotification;
const sameAsLastNotification = lastNotification && lastNotification.body === message;
- if (sameAsLastNotification) {
+ if (sameAsLastNotification || remote.getCurrentWindow().isVisible()) {
return;
}