diff options
| author | Henry Jameson <me@hjkos.com> | 2023-12-13 22:04:00 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2023-12-13 22:04:00 +0200 |
| commit | 99d04bed2bf96cade48c99bae8fcf154bd769998 (patch) | |
| tree | 18cebe034033b8fc3d2c28125cd89f66b480b3b4 /src | |
| parent | b394392d0d6d73dacb878a25dd0b25676ef72635 (diff) | |
attempt at fixing the extra notification again
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/sw/sw.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/sw/sw.js b/src/services/sw/sw.js index 4516c813..98dc7294 100644 --- a/src/services/sw/sw.js +++ b/src/services/sw/sw.js @@ -28,7 +28,7 @@ function subscribePush (registration, isEnabled, vapidPublicKey) { if (!vapidPublicKey) return Promise.reject(new Error('VAPID public key is not found')) const subscribeOptions = { - userVisibleOnly: true, + userVisibleOnly: false, applicationServerKey: urlBase64ToUint8Array(vapidPublicKey) } return registration.pushManager.subscribe(subscribeOptions) |
