mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 09:27:23 -05:00
Merge pull request #1033 from getredash/fixes_160504
Fix: only ask for notification permissions if wasn't denied
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (Notification.permission !== "granted") {
|
||||
if (Notification.permission === "default") {
|
||||
Notification.requestPermission(function (status) {
|
||||
if (Notification.permission !== status) {
|
||||
Notification.permission = status;
|
||||
|
||||
Reference in New Issue
Block a user