This commit is contained in:
Henry Jameson 2026-08-04 21:14:09 +03:00
commit a62487b36b
7 changed files with 16 additions and 19 deletions

View file

@ -28,10 +28,8 @@ function getOrCreateServiceWorker() {
}
function subscribePush(registration, isEnabled, vapidPublicKey) {
if (!isEnabled)
throw new Error('Web Push is disabled in config')
if (!vapidPublicKey)
throw new Error('VAPID public key is not found')
if (!isEnabled) throw new Error('Web Push is disabled in config')
if (!vapidPublicKey) throw new Error('VAPID public key is not found')
const subscribeOptions = {
userVisibleOnly: false,