mirror of
https://github.com/ellite/Wallos.git
synced 2025-12-30 17:59:54 -06:00
9 lines
375 B
JavaScript
9 lines
375 B
JavaScript
if ('serviceWorker' in navigator) {
|
|
window.addEventListener('load', function() {
|
|
navigator.serviceWorker.register('service-worker.js').then(function(registration) {
|
|
//console.log('ServiceWorker registration successful with scope: ', registration.scope);
|
|
}, function(err) {
|
|
console.log('ServiceWorker registration failed: ', err);
|
|
});
|
|
});
|
|
} |