Skip to content

Commit

Permalink
fix(firefox): remove silent property for notification (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokocup authored Sep 1, 2022
1 parent d148f48 commit 68093ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ window.Notification = class Notification { // eslint-disable-line
iconUrl: 'images/logo-128x128.png',
}, options);

// Firefox does not support "silent"
if (Helpers.isFirefox) {
delete this.content.silent;
}

this.callbacks = {};

this._setup(options);
Expand Down

0 comments on commit 68093ad

Please sign in to comment.