Guide_Wii/images/service-worker.js
Jeith e8e5b61404
PWA optimizations (#274)
* feat: added service worker and pwa optimizations

* fix: added newline at the end of Gemfile.lock to match main branch

* fix: fixed newline at the end of Gemfile.lock to match main branch
2022-07-15 17:49:36 +03:00

11 lines
No EOL
318 B
JavaScript

self.addEventListener('install', function(event) {
// registering service worker...
})
self.addEventListener('fetch', function(event) {
// intercepting requests to check for the file or data in the cache
})
self.addEventListener('activate', function(event) {
// service worker activated!
})