Files
crawlnicle/frontend/js/index.ts
Tyler Hallada 98c06cbe91 WIP frontend isn't completely broken now
Still more work left with integrating apalis and need to fully update
it.

These changes are mostly for fixing the frontend I broke by eagerly
updating everything.
2025-02-10 00:52:51 -05:00

24 lines
438 B
TypeScript

import htmx from 'htmx.org';
declare global {
interface Window {
htmx: typeof htmx;
}
}
window.htmx = htmx;
// Wait for htmx to be fully initialized before loading extensions
document.addEventListener(
'htmx:load',
() => {
import('htmx.org/dist/ext/sse');
},
{ once: true }
);
// import assets so they get named with a content hash that busts caches
// import '../css/styles.css';
import './localTimeController';