mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-01-29 01:28:29 +00:00
fix env mode check when registering sw
This commit is contained in:
parent
024c8fad7f
commit
8c5a6f2fd4
|
@ -24,7 +24,7 @@ settings.applyTheme();
|
|||
// Register Service Worker
|
||||
if ('serviceWorker' in navigator) {
|
||||
const swUrl =
|
||||
import.meta.env.MODE === 'prod'
|
||||
import.meta.env.MODE === 'production'
|
||||
? `${trimTrailingSlash(import.meta.env.BASE_URL)}/sw.js`
|
||||
: `/dev-sw.js?dev-sw`;
|
||||
|
||||
|
|
Loading…
Reference in a new issue