mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
reorganize js callbacks and startup sequence
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user