Skip to content

Commit

Permalink
fix service worker registration
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Feb 22, 2024
1 parent de1c39f commit dab8e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ document.addEventListener('DOMContentLoaded', function() {

if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('service-worker.js').then(function(registration) {
navigator.serviceWorker.register('scripts/service-worker.js').then(function(registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
console.log('ServiceWorker registration failed: ', err);
Expand Down

0 comments on commit dab8e1b

Please sign in to comment.