Skip to content

Commit

Permalink
Exclude paths from protocol handler callback that end with `github-de…
Browse files Browse the repository at this point in the history
…sktop` (#689)
  • Loading branch information
shiftkey authored Apr 3, 2022
1 parent fd7ce1b commit 1e0cbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main-process/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function handlePossibleProtocolLauncherArgs(args: ReadonlyArray<string>) {
// so we should filter out the program name as well as any parameters that
// look like arguments to Electron
const argsWithoutParameters = args.filter(
a => a !== 'github-desktop' && !a.startsWith('--')
a => !a.endsWith('github-desktop') && !a.startsWith('--')
)
if (argsWithoutParameters.length > 0) {
handleAppURL(argsWithoutParameters[0])
Expand Down

0 comments on commit 1e0cbea

Please sign in to comment.