SimonSays/site.js

3 lines
179 B
JavaScript
Raw Permalink Normal View History

2019-02-26 14:45:06 +01:00
navigator.serviceWorker && navigator.serviceWorker.register('./sw.js').then(function(registration) {
console.log('Excellent, registered with scope: ', registration.scope);
});