summaryrefslogtreecommitdiffstats
path: root/js/app.js
blob: d79fb88c41571cd2654f35e8a2aaceae55b830bd (plain) (blame)
1
2
3
4
5
if ("serviceWorker" in navigator) {
    navigator.serviceWorker.register("/sw.js")
        .then(() => {})
        .catch((err) => console.log("Service worker registration failed", err));
}