mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
careful checking for a global that is not there
This commit is contained in:
parent
77a3bc1045
commit
5623827433
1 changed files with 9 additions and 2 deletions
|
@ -28,8 +28,15 @@ function init(messageBus) {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue