aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/service-worker.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-15 21:19:02 +0800
committercrupest <crupest@outlook.com>2021-06-15 21:19:02 +0800
commit1552c0086c396aa89e0ad965a6cbd6c3ea70cac4 (patch)
tree2347d15102711f8dc917dfd6e1888fc1527c5c64 /FrontEnd/src/service-worker.tsx
parentc442bec1342a16ddfdb8e103f9b238e4581639e2 (diff)
downloadtimeline-1552c0086c396aa89e0ad965a6cbd6c3ea70cac4.tar.gz
timeline-1552c0086c396aa89e0ad965a6cbd6c3ea70cac4.tar.bz2
timeline-1552c0086c396aa89e0ad965a6cbd6c3ea70cac4.zip
...
Diffstat (limited to 'FrontEnd/src/service-worker.tsx')
-rw-r--r--FrontEnd/src/service-worker.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/FrontEnd/src/service-worker.tsx b/FrontEnd/src/service-worker.tsx
index ea8dfc32..e40124fe 100644
--- a/FrontEnd/src/service-worker.tsx
+++ b/FrontEnd/src/service-worker.tsx
@@ -4,7 +4,7 @@ import { Button } from "react-bootstrap";
import { pushAlert } from "./services/alert";
-if ("serviceWorker" in navigator) {
+if (import.meta.env.PROD && "serviceWorker" in navigator) {
let isThisTriggerUpgrade = false;
const upgradeSuccessLocalStorageKey = "TIMELINE_UPGRADE_SUCCESS";