| Index: lib/subscriptionInit.js |
| =================================================================== |
| --- a/lib/subscriptionInit.js |
| +++ b/lib/subscriptionInit.js |
| @@ -145,11 +145,11 @@ |
| // Firefox throws synchronously if the "buttons" option is provided. |
| // If buttons are supported (i.e. on Chrome), this fails with |
| - // a different error message due to missing required options. |
| + // an asynchronous error due to missing required options. |
| // https://bugzilla.mozilla.org/show_bug.cgi?id=1190681 |
| try |
| { |
| - browser.notifications.create({buttons: []}); |
| + browser.notifications.create({buttons: []}).catch(() => {}); |
| } |
| catch (e) |
| { |