()
| 158 | } |
| 159 | |
| 160 | function 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 |
| 169 | if (typeof document !== 'undefined') { |