Add comment use service worker (#1355)
This commit is contained in:
parent
c7fdfed00c
commit
bced495570
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ export class _ServiceWorker {
|
|||
}
|
||||
|
||||
init() {
|
||||
//Check node env and if is development, use service worker dev file
|
||||
if (NODE_ENV === "development") {
|
||||
navigator.serviceWorker
|
||||
.register("/service-worker-dev.js")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue