Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 127e038

Browse files
committed
Prevent window nagivation when droping a link
1 parent 866ad92 commit 127e038

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ function createWindow() {
103103
mainWindow = null;
104104
app.quit();
105105
});
106+
107+
mainWindow.webContents.on('will-navigate', function(e){
108+
e.preventDefault();
109+
});
106110
}
107111

108112
// This method will be called when Electron has finished initialization and is ready to create browser windows.

0 commit comments

Comments
 (0)