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
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax authored Sep 8, 2024
1 parent 7d2ac10 commit 7db754c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,15 @@ const script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'salam-wa.js';
document.body.appendChild(script);

/*
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js')
.then(() => {
console.log('Service Worker Registered');
})
.catch(error => {
console.log('Service Worker Registration Failed:', error);
});
}
*/

0 comments on commit 7db754c

Please sign in to comment.