Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Update script.js: Fix service-worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax authored Sep 9, 2024
1 parent 135e834 commit 522a391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 522a391

Please sign in to comment.