reorganize js callbacks and startup sequence

This commit is contained in:
Vladimir Mandic
2024-04-04 18:26:51 -04:00
parent 77db12765d
commit 9d04255b54
22 changed files with 98 additions and 80 deletions
-6
View File
@@ -1,8 +1,4 @@
let dragDropInitialized = false;
async function initDragDrop() {
if (dragDropInitialized) return;
dragDropInitialized = true;
log('initDragDrop');
window.addEventListener('drop', (e) => {
const target = e.composedPath()[0];
@@ -26,5 +22,3 @@ async function initDragDrop() {
}
});
}
onAfterUiUpdate(initDragDrop);