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 82b61ab commit e53fa94
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,19 @@
<link rel="icon" href="dist/favicon.ico">
<script defer src="dist/vendor.bundle.js"></script>
<script defer src="dist/main.bundle.js"></script>
<script>
<script>
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('sw.js')
}
</script>
window.addEventListener('`load`', () => {
navigator.serviceWorker.register('sw.js')
.then((registration) => {
console.log('Registration completed successfully',registration);
})
.catch((error) => {
console.log('Registration failed', error);
}
)
}
}
</script>
</head>
<body>
Expand Down

0 comments on commit e53fa94

Please sign in to comment.