Change to focus with open-url event

This commit is contained in:
kPherox 2019-04-30 14:40:26 +09:00
parent 6f770a04cf
commit 405140c8e0
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -99,7 +99,9 @@ export default class Application {
private static handleOpenURL(event: Event, url: string) { private static handleOpenURL(event: Event, url: string) {
if (Window.windowMap.has('main')) { 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)
} }
} }