Skip to content

Commit

Permalink
Fix Service worker registration failed
Browse files Browse the repository at this point in the history
  • Loading branch information
bornova committed Nov 3, 2023
1 parent e51c8ea commit fbf376e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if (isElectron) {
} else {
// Register service worker
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./sw').catch(() => {
navigator.serviceWorker.register('./sw.js').catch(() => {
console.log('Service worker registration failed')
})
}
Expand Down

0 comments on commit fbf376e

Please sign in to comment.