From 68093ad053400950e5b3cdb71e602029164e3f7c Mon Sep 17 00:00:00 2001 From: mokocup <50762437+mokocup@users.noreply.github.com> Date: Fri, 2 Sep 2022 00:16:57 +0700 Subject: [PATCH] fix(firefox): remove silent property for notification (#4) --- src/js/background.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/background.js b/src/js/background.js index 12aba07..34dbf66 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -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);