Merge pull request #1033 from getredash/fixes_160504

Fix: only ask for notification permissions if wasn't denied
This commit is contained in:
Arik Fraimovich
2016-05-04 17:03:26 +03:00

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;