mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 22:34:57 +00:00
careful checking for a global that is not there
This commit is contained in:
parent
77a3bc1045
commit
5623827433
@ -28,10 +28,17 @@ function init(messageBus) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
if (!Notification) {
|
if (!Notification) {
|
||||||
Em.Logger.info('Discourse desktop notifications are disabled - not supported by browser');
|
Em.Logger.info('Discourse desktop notifications are disabled - not supported by browser');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
Em.Logger.info('Discourse desktop notifications are disabled - not defined');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Notification.permission === "granted") {
|
if (Notification.permission === "granted") {
|
||||||
havePermission = true;
|
havePermission = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user