Created a preload.js, small changes in the package.json, main.js, index.html and script.js like removing whitespace

This commit is contained in:
2025-11-04 17:18:45 +01:00
parent 38d0934232
commit 4686d17ad9
6 changed files with 18 additions and 9 deletions
+5 -4
View File
@@ -17,10 +17,11 @@ uploadContainer.addEventListener('dragleave', () => {
});
uploadContainer.addEventListener('drop', (e) => {
e.preventDefault();
uploadContainer.classList.remove('dragover');
uploadContainer.addEventListener('drop', (e) => { e.preventDefault();
const file = e.dataTransfer.files[0]; // Pfad der Datei
const filePath = file.path;
console.log('Pfad:', filePath); // ggf. an den Hauptprozess senden, wenn nötig
window.electronAPI?.sendDropPath?.(filePath);
const files = e.dataTransfer.files;
handleFiles(files);