Add comment use service worker (#1355)

This commit is contained in:
grégoire parant 2021-08-10 23:10:56 +02:00 committed by GitHub
parent c7fdfed00c
commit bced495570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")