Add comment use service worker (#1355)
This commit is contained in:
parent
c7fdfed00c
commit
bced495570
@ -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…
Reference in New Issue
Block a user