From 9011996d69ffa4016697cbb388a861758164aba0 Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Thu, 1 Mar 2018 05:03:36 +0700 Subject: [PATCH] [FIX #988] Disable drag and drop --- src/renderer/index.js | 6 ++++++ 1 file changed, 6 insertions(+) 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) {