mirror of
https://git.unlock-music.dev/um/web.git
synced 2025-07-06 22:42:10 +08:00
Fix: [Extension] Remove inline script (for extension's Content Security Policy reason)
Fix: [Extension] Disable Service Worker
This commit is contained in:
@ -2,7 +2,8 @@
|
||||
|
||||
import {register} from 'register-service-worker'
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
if (process.env.NODE_ENV === 'production' && window.location.protocol === "https:") {
|
||||
|
||||
register(`${process.env.BASE_URL}service-worker.js`, {
|
||||
ready() {
|
||||
console.log('App is being served from cache by a service worker.')
|
||||
|
Reference in New Issue
Block a user