fix removing csp

csp-setting-fix
Benjamin Atkin 3 years ago
parent 1a9f5e9ce4
commit 934e6616c4

@ -254,9 +254,11 @@ export class FileGroupPage extends HTMLElement {
if (this.cspOff) {
return undefined
} else {
return this.cspProfiles[
this.settings.networkAccess
] ?? this.cspProfiles.local
return (
this.settings.networkAccess in this.cspProfiles ?
this.cspProfiles[this.settings.networkAccess] :
this.cspProfiles.local
)
}
}

@ -19,7 +19,7 @@ async function initCache() {
'/loader/editor-build.js',
'/menu/dropdown.js',
'/settings/page-settings.js',
])
]) //1
}
self.addEventListener("install", event => {
@ -55,4 +55,4 @@ self.addEventListener('fetch', event => {
self.addEventListener('activate', event => {
event.waitUntil(clients.claim())
})
})

Loading…
Cancel
Save