Change to focus with open-url event
This commit is contained in:
parent
6f770a04cf
commit
405140c8e0
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user