ui: seperate worker build

This commit is contained in:
undefined committed 2022-10-08 09:59:32 +08:00
1 parent 12bad8267a
commit 042acba3e7
6 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ console.log(
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register(new URL('./service-worker', import.meta.url)).then((registration) => {
navigator.serviceWorker.register('/service-worker.js').then((registration) => {
console.log('SW registered: ', registration);
}).catch((registrationError) => {
console.log('SW registration failed: ', registrationError);