feat(branding): implement dynamic branding in service worker and reports (#383)
* feat(branding): implement dynamic branding in service worker and reports * refactor(service-worker): remove push notification handling code * feat(service-worker): implement dynamic branding in service worker and related scripts
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
/**
|
||||
* Service Worker for Push Notifications
|
||||
* Handles incoming push notifications and notification click events
|
||||
*
|
||||
* NOTE: This is the source template. The deployed file at public/sw.js is
|
||||
* generated by scripts/inject-public-branding.mjs (runs via predev/prebuild)
|
||||
* and is gitignored. Edit this template, not the generated file.
|
||||
*/
|
||||
|
||||
// Handle push events
|
||||
@@ -32,7 +36,7 @@ self.addEventListener('push', (event) => {
|
||||
}
|
||||
|
||||
event.waitUntil(
|
||||
self.registration.showNotification(title || 'Ekonomi', options)
|
||||
self.registration.showNotification(title || '__NEXT_PUBLIC_BRANDING_APP_NAME__', options)
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user