fix(frontend): hyperscript not working correctly for offcanvas and modals

This commit is contained in:
Herculino Trotta
2026-04-30 23:16:19 -03:00
parent 2cfb3fb12e
commit 10eecd09ff

View File

@@ -1,4 +1,4 @@
import 'hyperscript.org';
import _hyperscript from 'hyperscript.org';
import './_htmx.js';
import Alpine from "alpinejs";
import mask from '@alpinejs/mask';
@@ -6,8 +6,10 @@ import collapse from '@alpinejs/collapse'
import { create, all } from 'mathjs';
window.Alpine = Alpine;
const _hyperscript = window._hyperscript;
window._hyperscript = _hyperscript;
if (!window._hyperscript) {
window._hyperscript = _hyperscript;
_hyperscript.browserInit();
}
window.math = create(all, {
number: 'BigNumber',
});