Merge pull request 'fix removing csp' (#58) from csp-setting-fix into main

Reviewed-on: https://codeberg.org/macchiato/pages/pulls/58
main
bat 3 years ago
commit 8a3f084936

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

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

Loading…
Cancel
Save