diff --git a/js/app.js b/js/app.js index aad4601..e8cf8c8 100644 --- a/js/app.js +++ b/js/app.js @@ -260,5 +260,5 @@ window.onbeforeunload = function(event) { if ('serviceWorker' in navigator) { - navigator.serviceWorker.register('service-worker.js'); + navigator.serviceWorker.register('js/service-worker.js'); } \ No newline at end of file diff --git a/service-worker.js b/js/service-worker.js similarity index 98% rename from service-worker.js rename to js/service-worker.js index b3e69ed..a9badb1 100644 --- a/service-worker.js +++ b/js/service-worker.js @@ -16,7 +16,7 @@ Copyright 2015, 2019, 2020 Google LLC. All Rights Reserved. const OFFLINE_VERSION = 1; const CACHE_NAME = "offline"; // Customize this with a different URL if needed. -const OFFLINE_URL = "index.html"; +const OFFLINE_URL = "../index.html"; self.addEventListener("install", (event) => { event.waitUntil(