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