Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

register service worker

// index.html
window.addEventListener('load', function () {
    navigator
        .serviceWorker
        .register('/service-worker.js');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #register #service #worker
ADD COMMENT
Topic
Name
1+5 =