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:
Mattsson
2026-04-30 17:17:41 +02:00
committed by GitHub
parent c86dbdc60d
commit 5e1b0f791d
11 changed files with 81 additions and 9 deletions
+5 -1
View File
@@ -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)
)
})