mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:52:45 +08: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;
|
||||
}
|
||||
|
||||
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 New Issue
Block a user