@ -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())
})