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.
This commit is contained in:
Caner Elci 2017-10-30 23:55:36 +03:00 committed by Scott Nonnenberg
parent fb931b4733
commit a3fbb9a6aa

View file

@ -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;