diff --git a/src/develop/src/js/main.js b/src/develop/src/js/main.js index b549b94..3249299 100755 --- a/src/develop/src/js/main.js +++ b/src/develop/src/js/main.js @@ -114,7 +114,9 @@ async function main() { }); addEventListener('htmx:afterSwap', function (event) { - ACMS.Dispatch(event.target); + if (window.ACMS !== undefined) { + ACMS.Dispatch(event.target); + } });