testing
This commit is contained in:
parent
53718e7577
commit
80c1bbb052
11
index.html
11
index.html
|
|
@ -108,6 +108,17 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<script> // PWA things
|
||||
// add service worker service-worker.js
|
||||
if (typeof navigator !== 'undefined') {
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', function() {
|
||||
navigator.serviceWorker.register('/service-worker.js');
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// If settings is in localStorage, load it. If not, create an empty object.
|
||||
settings = localStorage.getItem("settings") ? JSON.parse(localStorage.getItem("settings")) : {};
|
||||
|
|
|
|||
Loading…
Reference in New Issue