master: change repo
This commit is contained in:
24
dev/sw.js
Normal file
24
dev/sw.js
Normal file
@@ -0,0 +1,24 @@
|
||||
try {
|
||||
self.addEventListener('message', (event) => {
|
||||
if (event.data.action === 'skipWaiting') {
|
||||
self.skipWaiting()
|
||||
}
|
||||
})
|
||||
} catch (error) {
|
||||
console.warn('listening to message', {
|
||||
error
|
||||
})
|
||||
}
|
||||
|
||||
workbox.core.setCacheNameDetails({
|
||||
prefix: "vaquant"
|
||||
});
|
||||
|
||||
/**
|
||||
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
|
||||
* requests for URLs in the manifest.
|
||||
* See https://goo.gl/S9QRab
|
||||
*/
|
||||
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
||||
workbox.precaching.suppressWarnings();
|
||||
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
||||
Reference in New Issue
Block a user