Piped/src/registerServiceWorker.js

8 lines
150 B
JavaScript
Raw Normal View History

2020-11-15 11:27:44 +00:00
/* eslint-disable no-console */
2021-12-28 14:59:58 +00:00
import { registerSW } from "virtual:pwa-register";
2020-11-15 11:27:44 +00:00
if (process.env.NODE_ENV === "production") {
2021-12-28 14:59:58 +00:00
registerSW();
2020-11-15 11:27:44 +00:00
}