mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user