removed an event listener which was doubeld and a submitbutton call

This commit is contained in:
2025-12-09 15:12:32 +01:00
parent 70d3bfa201
commit 34a8b186a8
+2 -14
View File
@@ -55,28 +55,16 @@ language_option.addEventListener('change', (e)=>{
}); });
//listener for the file explorer search when something got selected
videoUpload.addEventListener("change", () => { videoUpload.addEventListener("change", () => {
try { try {
if (videoUpload.files.length > 0) { if (videoUpload.files.length > 0) {
const file = videoUpload.files; const file = videoUpload.files;
handleFiles(file); handleFiles(file);
} }
activateSubmitBtn(currentVideoPath !== null);
} catch (error) { } catch (error) {
console.log(error); console.log(error);
} }
});
//listener for the file explorer search when something got selected
videoUpload.addEventListener('change', () => {
try {
handleFiles(videoUpload.files);
} catch (error) {
console.log("Error in manualBtn EventListener change");
console.log(error);
}
}); });
//listener for the file explorer search //listener for the file explorer search