Guide_Wii/images/#unused#/pwa.js
2023-09-30 21:47:23 -07:00

11 lines
No EOL
335 B
JavaScript

document.addEventListener('DOMContentLoaded', init, false);
function init() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/assets/js/service-worker.js')
.then((reg) => {
// Service worker registration confirmed
}, (err) => {
// Service worker registration error
});
}
}