From dab8e1b6bcfb8077e7547d987cd4924c989d4c46 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Thu, 22 Feb 2024 08:04:28 +0100 Subject: [PATCH] fix service worker registration --- scripts/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dashboard.js b/scripts/dashboard.js index 98e93a70e..8ba1e03bf 100644 --- a/scripts/dashboard.js +++ b/scripts/dashboard.js @@ -320,7 +320,7 @@ document.addEventListener('DOMContentLoaded', function() { if ('serviceWorker' in navigator) { window.addEventListener('load', function() { - navigator.serviceWorker.register('service-worker.js').then(function(registration) { + navigator.serviceWorker.register('scripts/service-worker.js').then(function(registration) { console.log('ServiceWorker registration successful with scope: ', registration.scope); }, function(err) { console.log('ServiceWorker registration failed: ', err);