From d7db132c7686632da1297ab9524cbae78dfb4321 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 13 Oct 2018 13:35:16 +0200 Subject: [PATCH] prevent ctrl-click events (#465) --- app/lib/window.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/window.ts b/app/lib/window.ts index 4bce2adf..70c11d68 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -193,6 +193,8 @@ export class Window { ipcMain.on('window-set-title', (_event, title) => { this.window.setTitle(title) }) + + this.window.webContents.on('new-window', event => event.preventDefault()) } private destroy () {