Skip to content

Commit

Permalink
fix: do not use fallback download URLs if custom baseUrl is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Apr 4, 2024
1 parent 4ec0280 commit 05f6526
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/browsers/src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ export async function install(
try {
return await installUrl(url, options);
} catch (err) {
// If custom baseUrl is provided, do not fall back to CfT dashboard.
if (options.baseUrl) {
throw err;
}
debugInstall(`Error downloading from ${url}.`);
switch (options.browser) {
case Browser.CHROME:
Expand Down

0 comments on commit 05f6526

Please sign in to comment.