Piped/src/registerServiceWorker.js
2022-01-12 05:31:12 +00:00

8 lines
150 B
JavaScript

/* eslint-disable no-console */
import { registerSW } from "virtual:pwa-register";
if (process.env.NODE_ENV === "production") {
registerSW();
}