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