mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-05-03 22:14:21 +02:00
fix(frontend): hyperscript not working correctly for offcanvas and modals
This commit is contained in:
@@ -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',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user