mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
Fix: only ask for notification permissions if wasn't denied
This commit is contained in:
parent
d9cc063be2
commit
056ae4f63e
@ -42,7 +42,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (Notification.permission !== "granted") {
|
||||
if (Notification.permission === "default") {
|
||||
Notification.requestPermission(function (status) {
|
||||
if (Notification.permission !== status) {
|
||||
Notification.permission = status;
|
||||
|
Loading…
Reference in New Issue
Block a user