mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 06:53:27 +02:00
Ensure users that install pokerogue as a PWA do not remain on the old version
This commit is contained in:
parent
1f4efa0e27
commit
56752d6f4a
@ -1,3 +1,9 @@
|
||||
/// <reference lib = "WebWorker" />
|
||||
self.addEventListener('install', function () {
|
||||
console.log('Service worker installing...');
|
||||
});
|
||||
|
||||
self.addEventListener('activate', (event) => {
|
||||
// @ts-expect-error: See https://github.com/microsoft/TypeScript/issues/14877
|
||||
event.waitUntil(self.clients.claim());
|
||||
})
|
Loading…
Reference in New Issue
Block a user