Skip to content

Commit

Permalink
fix: guard open url when url is undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 30, 2024
1 parent dd74a99 commit c1962e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function bootsharp() {
} else {
mainWindow = createMainWindow()
}
handleOpen(url)
url && handleOpen(url)
})

// Default open or close DevTools by F12 in development
Expand Down

0 comments on commit c1962e7

Please sign in to comment.