MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / mergeMetaConfig

Function mergeMetaConfig

src/_hyperscript.js:160–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160function mergeMetaConfig() {
161 let element = document.querySelector('meta[name="htmx-config"]');
162 if (element) {
163 let metaConfig = JSON.parse(element.content);
164 Object.assign(config, metaConfig);
165 }
166}
167
168// Auto-initialize in browser
169if (typeof document !== 'undefined') {

Callers 1

_hyperscript.jsFile · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected