We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a337896 commit 84c7382Copy full SHA for 84c7382
1 file changed
arc/js/notify.js
@@ -10,10 +10,14 @@
10
notify_methods = {
11
create_notification: function(options) {
12
if( typeof(Notification) == 'function' ) {
13
- return new Notification(options.title, options);
14
- } else {
15
- return null;
16
- }
+ try {
+ return new Notification(options.title, options);
+ }
+ catch(err) {
17
+ console.log(err);
18
19
20
+ return null;
21
},
22
close_notification: function(notification, options) {
23
return setTimeout(notification.close.bind(notification), options.closeTime);
0 commit comments