Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to make PWAs installable js

if('serviceWorker' in navigator) {
    navigator.serviceWorker.register('./pwa-examples/js13kpwa/sw.js');
};
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #How #PWAs #installable #js
ADD COMMENT
Topic
Name
2+8 =