V0.38.3 extension config sections (#236)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
{{/* Inject section name for Preact routing */}}
|
||||
<script nonce="{{.CSPNonce}}">
|
||||
window.__SECTION__ = '{{.Section}}';
|
||||
window.__CONFIG_SECTIONS__ = {{.Data.ConfigSections | toJSON}};
|
||||
</script>
|
||||
|
||||
{{/* Vendor: Preact + htm → globals, then SDK boot, then admin surface */}}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
{{/* Inject section name for Preact routing */}}
|
||||
<script nonce="{{.CSPNonce}}">
|
||||
window.__SECTION__ = '{{.Section}}';
|
||||
window.__CONFIG_SECTIONS__ = {{.Data.ConfigSections | toJSON}};
|
||||
</script>
|
||||
|
||||
{{/* Bridge section scripts removed in v0.37.7 — all sections are native Preact */}}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
{{define "scripts-team-admin"}}
|
||||
<script nonce="{{.CSPNonce}}">
|
||||
window.__SECTION__ = '{{.Section}}';
|
||||
window.__CONFIG_SECTIONS__ = {{.Data.ConfigSections | toJSON}};
|
||||
</script>
|
||||
|
||||
<script type="module" nonce="{{.CSPNonce}}">
|
||||
|
||||
Reference in New Issue
Block a user