From 522a391fcd9847b9c22ebbbc731f65d830745e78 Mon Sep 17 00:00:00 2001 From: Max Base Date: Mon, 9 Sep 2024 03:52:59 +0330 Subject: [PATCH] Update script.js: Fix service-worker.js --- script/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/script.js b/script/script.js index cd881d9..5e987be 100644 --- a/script/script.js +++ b/script/script.js @@ -112,7 +112,7 @@ script.src = 'salam/salam-wa.js'; document.body.appendChild(script); if ('serviceWorker' in navigator) { - navigator.serviceWorker.register('/service-worker.js').then(() => { + navigator.serviceWorker.register('/script/service-worker.js').then(() => { console.log('Service Worker Registered'); }) .catch(error => {