Skip to content

Commit

Permalink
feat(app): handle custom protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Aug 9, 2020
1 parent b5ee2a2 commit 1f1e7cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async function initialize() {
createDockMenu()
}
checkForUpdates()
app.setAsDefaultProtocolClient(app.name)
createWindow(cwd)
}

Expand Down Expand Up @@ -61,6 +62,11 @@ app.on('will-finish-launching', () => {
createWindow(file)
}
})
// handle custom protocol
// app.on('open-url', (event, url) => {
// event.preventDefault()
// console.log(url)
// })
})

app.on('window-all-closed', () => {
Expand Down

0 comments on commit 1f1e7cb

Please sign in to comment.