diff --git a/ui/media/js/dnd.js b/ui/media/js/dnd.js index a16fbc65..1ac967ae 100644 --- a/ui/media/js/dnd.js +++ b/ui/media/js/dnd.js @@ -608,7 +608,7 @@ document.addEventListener('paste', async (event) => { } const paste = (event.clipboardData || window.clipboardData).getData('text') const selection = window.getSelection() - if (selection.toString().trim().length <= 0 && await parseContent(paste)) { + if (paste != "" && selection.toString().trim().length <= 0 && await parseContent(paste)) { event.preventDefault() return }