Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
KirbyJeff authored Dec 22, 2024
1 parent 1070db5 commit 6a456a2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,7 @@
<script defer src="dist/vendor.bundle.js"></script>
<script defer src="dist/main.bundle.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('`load`', () => {
navigator.serviceWorker.register('sw.js', { scope:'./' })
.then((registration) => {
console.log('Registration completed successfully',registration);
})
.catch((error) => {
console.log('Registration failed', error);
})})};
navigator.serviceWorker.register('sw.js')
</script>
</head>
<body>
Expand Down

0 comments on commit 6a456a2

Please sign in to comment.