HummingBirdAnimeClient/frontEndSrc/js/anon.js
Timothy J Warren fce9764f08
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
Clean up public folder, move JS tools to frontEndSrc folder
2020-04-10 15:07:08 -04:00

11 lines
262 B
JavaScript

import './events.js';
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js').then(reg => {
console.log('Service worker registered', reg.scope);
}).catch(error => {
console.error('Failed to register service worker', error);
});
}