From 627845f6e423e168ecbde90716ee5249df3cd01f Mon Sep 17 00:00:00 2001 From: Rokt33r Date: Sat, 2 Apr 2016 20:15:14 +0900 Subject: [PATCH] fix file drop behaviour --- browser/main/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/browser/main/index.js b/browser/main/index.js index 092f60d6..96cb5edb 100644 --- a/browser/main/index.js +++ b/browser/main/index.js @@ -25,6 +25,15 @@ window.addEventListener('online', function () { ipc.send('check-update', 'check-update') }) +document.addEventListener('drop', function (e) { + e.preventDefault() + e.stopPropagation() +}) +document.addEventListener('dragover', function (e) { + e.preventDefault() + e.stopPropagation() +}) + function notify (title, options) { if (process.platform === 'win32') { options.icon = path.join('file://', global.__dirname, '../../resources/app.png')