feat: pwa manifest, icon and minimal service worker
This commit is contained in:
11
web/public/sw.js
Normal file
11
web/public/sw.js
Normal file
@@ -0,0 +1,11 @@
|
||||
self.addEventListener('install', () => {
|
||||
self.skipWaiting()
|
||||
})
|
||||
|
||||
self.addEventListener('activate', (event) => {
|
||||
event.waitUntil(self.clients.claim())
|
||||
})
|
||||
|
||||
self.addEventListener('fetch', () => {
|
||||
// no-op: presence of a fetch handler enables PWA install
|
||||
})
|
||||
Reference in New Issue
Block a user