diff --git a/main.js b/main.js index 9f9a612e..1f84efcc 100644 --- a/main.js +++ b/main.js @@ -74,4 +74,10 @@ app.on('ready', function() { // when you should delete the corresponding element. mainWindow = null; }); + + // Deny drag&drop navigation in mainWindow. + // Drag&drop is allowed in webview of index.html. + mainWindow.webContents.on('will-navigate', function(event, url){ + event.preventDefault(); + }); });