simplify CSP and add title to settings dialog

main
bat 3 years ago
parent d28d932a20
commit 346428989f

@ -3,7 +3,7 @@ import { EditorBuild } from "/loader/editor-build.js"
export class Layout extends HTMLElement { export class Layout extends HTMLElement {
cspProfiles = { cspProfiles = {
local: "default-src 'self' 'unsafe-inline' 'unsafe-eval'", local: "default-src 'self' 'unsafe-inline' 'unsafe-eval'",
jsCdns: "default-src cdn.jsdelivr.net data.jsdelivr.com unpkg.com 'self' 'unsafe-inline' 'unsafe-eval'", unpkg: "default-src unpkg.com 'self' 'unsafe-inline' 'unsafe-eval'",
open: undefined, open: undefined,
} }

@ -228,7 +228,10 @@ export class PageActions extends HTMLElement {
) )
settingsEl.cspProfiles = this.cspProfiles settingsEl.cspProfiles = this.cspProfiles
settingsEl.data = this.page.settings settingsEl.data = this.page.settings
dialog.bodyEl.appendChild(settingsEl) const h = document.createElement('h2')
h.innerText = this.text.settings
dialog.headerEl.append(h)
dialog.bodyEl.append(settingsEl)
const bGroup = document.createElement( const bGroup = document.createElement(
'm-forms-button-group' 'm-forms-button-group'
) )

Loading…
Cancel
Save