So machen Sie PWAs installierbare JS

if('serviceWorker' in navigator) {
    navigator.serviceWorker.register('./pwa-examples/js13kpwa/sw.js');
};
Witty Worm