From a3fbb9a6aad196951ac7452095b2573242b0d21a Mon Sep 17 00:00:00 2001 From: Caner Elci Date: Mon, 30 Oct 2017 23:55:36 +0300 Subject: [PATCH] Fixed drawAttention() position to comply with user's settings (#1612) This fix is related about issue #1587 window.drawAttention() repositioned to allow complete control over notifications by settings. It now does not draw attention when the notifications are off. --- js/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/notifications.js b/js/notifications.js index 355982ad2..540e758c1 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -42,8 +42,6 @@ return; } - window.drawAttention(); - var audioNotification = storage.get('audio-notification') || false; if (audioNotification) { sound.play(); @@ -54,6 +52,8 @@ return; } + window.drawAttention(); + var title; var message; var iconUrl;