Fix: only ask for notification permissions if wasn't denied

This commit is contained in:
Arik Fraimovich 2016-05-04 16:57:58 +03:00
parent d9cc063be2
commit 056ae4f63e

View File

@ -42,7 +42,7 @@
return;
}
if (Notification.permission !== "granted") {
if (Notification.permission === "default") {
Notification.requestPermission(function (status) {
if (Notification.permission !== status) {
Notification.permission = status;