Correct errant file inclusion

This commit is contained in:
Jeremy Stretch 2024-11-15 09:13:38 -05:00
parent 8a42c72ca4
commit baa4142f84

View File

@ -1,18 +0,0 @@
import { getElements } from '../util';
import { Modal } from 'bootstrap';
export function initLaunchModal(): void {
console.log('initLaunchModal()');
const modal_element = document.getElementById('htmx-modal');
if (modal_element == null) return;
console.log('found modal element');
const modal = new Modal(modal_element);
console.log('created modal');
for (const launchButton of getElements<HTMLButtonElement>('button.launch-htmx-modal')) {
console.log(`found button: {launchButton}`);
launchButton.addEventListener('click', () => {
modal.show();
});
}
}