From 25e36f6ba7e07e4edf8afb16325b15f394c35cee Mon Sep 17 00:00:00 2001 From: Oliver Kogel Date: Sat, 18 Jan 2020 16:43:32 +0100 Subject: [PATCH] fix audio files drop not working --- src/modules/DOM.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/DOM.js b/src/modules/DOM.js index fe056db..c3149dc 100644 --- a/src/modules/DOM.js +++ b/src/modules/DOM.js @@ -215,6 +215,13 @@ document.addEventListener('drop', (e) => { return; } + else { + for (const f of e.dataTransfer.files) { + // start the conversion process + Converter.Start(f.path); + } + return; + } }); // add event listener for the copy button