Skip to content

Commit

Permalink
fix: use binary setting if versions file exists (#38)
Browse files Browse the repository at this point in the history
Issue: #37
  • Loading branch information
mbehr1 authored Aug 29, 2022
1 parent 54cb76f commit 1557829
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ export default class VSCodeServiceLauncher extends ChromedriverServiceLauncher {
)

Object.assign(cap, this.options)
cap[VSCODE_CAPABILITY_KEY].binary = await this._downloadVSCode(content[version]?.vscode as string)
cap[VSCODE_CAPABILITY_KEY].binary = (
cap[VSCODE_CAPABILITY_KEY].binary
|| await this._downloadVSCode(content[version]?.vscode as string)
)
this.chromedriverCustomPath = chromedriverPath
return
}
Expand Down

0 comments on commit 1557829

Please sign in to comment.