mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
fix gallery, update js logging, add en caching
This commit is contained in:
@@ -3,7 +3,7 @@ let dragDropInitialized = false;
|
||||
async function initDragDrop() {
|
||||
if (dragDropInitialized) return;
|
||||
dragDropInitialized = true;
|
||||
console.log('initDragDrop');
|
||||
log('initDragDrop');
|
||||
window.addEventListener('drop', (e) => {
|
||||
const target = e.composedPath()[0];
|
||||
if (!target.placeholder) return;
|
||||
@@ -18,7 +18,7 @@ async function initDragDrop() {
|
||||
if (fileInput) {
|
||||
fileInput.files = files;
|
||||
fileInput.dispatchEvent(new Event('change'));
|
||||
console.log('dropEvent');
|
||||
log('dropEvent');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user