Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit a70e287

Browse files
committed
fix(): update sw
1 parent 76aceb4 commit a70e287

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/pages/open-forge-app/open-forge-app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class OpenForgeApp {
2020
return;
2121
}
2222

23-
registration.waiting.postMessage({ data: { type: 'SKIP_WAITING' } });
23+
registration.waiting.postMessage({ data: 'skipWaiting' });
2424
window.location.reload();
2525
}
2626

stencil.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export const config: Config = {
2626
serviceWorker: {
2727
globPatterns: [
2828
'**/*.{js,css,json,html,ico,png,svg}'
29-
]
29+
],
30+
swSrc: 'src/sw.js'
3031
},
3132
copy: [
3233
{ src: 'robots.txt' }

0 commit comments

Comments
 (0)