Improved error log and implemented a variable and function for file path storage

This commit is contained in:
2025-11-12 20:14:56 +01:00
parent c8cbd4e92a
commit 1a681eb2b8
3 changed files with 38 additions and 11 deletions
+4 -1
View File
@@ -4,7 +4,8 @@ uploadContainer.addEventListener("dragover", (e) =>{
e.stopPropagation();
e.preventDefault();
} catch (error) {
console.log("Error in renderer.js dragover listener function")
console.log("Error in renderer.js dragover listener function");
console.log(error);
}
});
@@ -21,10 +22,12 @@ uploadContainer.addEventListener("drop", (e) => {
console.log(filePath)
const files1 = e.dataTransfer.files;
setCurrentPathVariable(filePath);
handleFiles(files1);
}
} catch (error) {
console.log("Error in renderer.js with the listerner for the drop function");
console.log(error);
}