diff --git a/src/renderer/index.js b/src/renderer/index.js index a67444b93..3812c3c91 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -62,6 +62,12 @@ ipcRenderer.on('window-is-focused', () => { dock.setBadge(''); }); +document.addEventListener('dragover', event => { + event.preventDefault(); +}) +document.addEventListener('drop', event => { + event.preventDefault(); +}); document.addEventListener('click', event => { let { target } = event; while (target && target !== document) {