Skip to content

Commit

Permalink
[bugfix] when only one advanced launch arg was set for a shortcut it …
Browse files Browse the repository at this point in the history
…was mishandled
  • Loading branch information
Zagrios committed Oct 7, 2023
1 parent 139f17d commit 1dde41f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/services/bs-launcher.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,13 @@ export class BSLauncherService {
shortcutLink = new URL(shortcutLink);
}

return objectFromEntries(shortcutLink.searchParams.entries()) as ShortcutParams;
const params = objectFromEntries(shortcutLink.searchParams.entries()) as ShortcutParams;

if(typeof params.additionalArgs === "string"){
params.additionalArgs = [params.additionalArgs];
}

return params;
}

public shortcutLinkToLaunchOptions(shortcutLink: string|URL): LaunchOption{
Expand Down

0 comments on commit 1dde41f

Please sign in to comment.