// This is the service worker with the Advanced caching
// Add this below content to your HTML page inside a tag, or add the js file to your page at the very top to register service worker
// If you get an error about not being able to import, double check that you have type="module" on your tag
/*
This code uses the pwa-update web component https://github.com/pwa-builder/pwa-update to register your service worker,
tell the user when there is an update available and let the user know when your PWA is ready to use offline.
*/
if( 'undefined' === typeof window){
importScripts('./pwaupdate.js');
const el = document.createElement('pwa-update');
document.body.appendChild(el);
}