Skip to content

Commit

Permalink
Merge pull request #1033 from getredash/fixes_160504
Browse files Browse the repository at this point in the history
Fix: only ask for notification permissions if wasn't denied
  • Loading branch information
arikfr committed May 4, 2016
2 parents 6d495d2 + 056ae4f commit b066ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rd_ui/app/scripts/services/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
return;
}

if (Notification.permission !== "granted") {
if (Notification.permission === "default") {
Notification.requestPermission(function (status) {
if (Notification.permission !== status) {
Notification.permission = status;
Expand Down

0 comments on commit b066ce4

Please sign in to comment.