prevent ctrl-click events (#465)

This commit is contained in:
Eugene Pankov
2018-10-13 13:35:16 +02:00
parent 8f0f1b19df
commit d7db132c76

View File

@@ -193,6 +193,8 @@ export class Window {
ipcMain.on('window-set-title', (_event, title) => { ipcMain.on('window-set-title', (_event, title) => {
this.window.setTitle(title) this.window.setTitle(title)
}) })
this.window.webContents.on('new-window', event => event.preventDefault())
} }
private destroy () { private destroy () {