social overhaul
This commit is contained in:
@@ -14,7 +14,13 @@ const { count, size, warnings } = await generateSW({
|
||||
'icon-512x512.png',
|
||||
'site.webmanifest',
|
||||
'styles.css',
|
||||
'push-handlers.js',
|
||||
],
|
||||
// Hand-written Web Push handlers (public/push-handlers.js) are pulled into
|
||||
// the generated SW at startup. importScripts runs them in the SW global
|
||||
// scope, so their `push` / `notificationclick` listeners compose with
|
||||
// Workbox's precache + runtime caching setup below.
|
||||
importScripts: ['/push-handlers.js'],
|
||||
navigateFallback: null,
|
||||
skipWaiting: true,
|
||||
clientsClaim: true,
|
||||
|
||||
Reference in New Issue
Block a user