fix: guard open url when url is undefined

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-07-30 15:50:16 +08:00
parent dd74a99bcb
commit c1962e7464
+1 -1
View File
@@ -67,7 +67,7 @@ function bootsharp() {
} else {
mainWindow = createMainWindow()
}
handleOpen(url)
url && handleOpen(url)
})
// Default open or close DevTools by F12 in development