From 405140c8e0a2b074c765111dfcfa95aecbd9c49a Mon Sep 17 00:00:00 2001 From: kPherox Date: Tue, 30 Apr 2019 14:40:26 +0900 Subject: [PATCH] Change to focus with open-url event --- src/main/Application.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/Application.ts b/src/main/Application.ts index 7a206c86..2723ac9d 100644 --- a/src/main/Application.ts +++ b/src/main/Application.ts @@ -99,7 +99,9 @@ export default class Application { private static handleOpenURL(event: Event, url: string) { if (Window.windowMap.has('main')) { - Window.windowMap.get('main')!.webContents.send("open-url-scheme", url) + let win = Window.windowMap.get('main')! + win.focus() + win.webContents.send("open-url-scheme", url) } }