mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-15 09:58:29 +08:00
[Desktop] Open window on login
Fix for menubar mode
This commit is contained in:
@@ -278,7 +278,10 @@ function init() {
|
||||
})
|
||||
|
||||
app.on('open-url', (_event, url) => {
|
||||
if (mainWindow) mainWindow.webContents.send('open-url', url)
|
||||
if (!mainWindow) return
|
||||
|
||||
mainWindow.webContents.send('open-url', url)
|
||||
showWindow()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user