logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 99d04bed2bf96cade48c99bae8fcf154bd769998
parent b394392d0d6d73dacb878a25dd0b25676ef72635
Author: Henry Jameson <me@hjkos.com>
Date:   Wed, 13 Dec 2023 22:04:00 +0200

attempt at fixing the extra notification again

Diffstat:

Msrc/services/sw/sw.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)