From 66d5d7a83bd31dd3f906a1ba0709942b63a9cd1c Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sat, 18 Apr 2026 13:45:58 +0000 Subject: [PATCH] fix: _hyperscript not working --- frontend/src/js/htmx.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/js/htmx.js b/frontend/src/js/htmx.js index 0988d4a..bff3626 100644 --- a/frontend/src/js/htmx.js +++ b/frontend/src/js/htmx.js @@ -1,4 +1,4 @@ -import _hyperscript from 'hyperscript.org/dist/_hyperscript.min'; +import 'hyperscript.org'; import './_htmx.js'; import Alpine from "alpinejs"; import mask from '@alpinejs/mask'; @@ -6,6 +6,7 @@ import collapse from '@alpinejs/collapse' import { create, all } from 'mathjs'; window.Alpine = Alpine; +const _hyperscript = window._hyperscript; window._hyperscript = _hyperscript; window.math = create(all, { number: 'BigNumber', @@ -15,8 +16,6 @@ Alpine.plugin(mask); Alpine.plugin(collapse); Alpine.start(); -_hyperscript.browserInit(); - const successAudio = new Audio("/static/sounds/success.mp3"); const popAudio = new Audio("/static/sounds/pop.mp3"); window.paidSound = successAudio;