Skip to content

Commit

Permalink
fix sw registration
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsproutt committed Jun 1, 2023
1 parent b67b353 commit 5ba74af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/staticBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class _Easyviolet {
new Error(`Your browser doesn't support service workers.`);
}

navigator.serviceWorker.register('./sw.js', {
navigator.serviceWorker.register(this.config.uvPrefix + 'sw.js', {
scope: this.config.prefix
}).then(resolve()).catch();
} else {
Expand Down

0 comments on commit 5ba74af

Please sign in to comment.