fix gallery, update js logging, add en caching

This commit is contained in:
Vladimir Mandic
2023-08-29 14:16:37 -04:00
parent 4bfa2ee877
commit 9e2e2b8b8f
25 changed files with 125 additions and 101 deletions
+2 -2
View File
@@ -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');
}
});
}