|
@@ -66,4 +66,15 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+if ('serviceWorker' in navigator) {
|
|
|
|
+ navigator.serviceWorker
|
|
|
|
+ .register('/static/serviceWorker.js')
|
|
|
|
+ .then(function(registration) {
|
|
|
|
+ console.log("ServiceWorker registration successful with scope: ", registration.scope);
|
|
|
|
+ }).catch(function(err) {
|
|
|
|
+ console.log("ServiceWorker registration failed: ", err);
|
|
|
|
+ });
|
|
|
|
+}
|