Skip to content

Commit

Permalink
feat(connect): use full version in URL when beta
Browse files Browse the repository at this point in the history
  • Loading branch information
karliatto committed May 23, 2024
1 parent 1cee154 commit 26c70f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/connect/src/data/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ export const VERSION = '9.2.4-beta.1';

const versionN = VERSION.split('.').map(s => parseInt(s, 10));

export const DEFAULT_DOMAIN = `https://connect.trezor.io/${versionN[0]}/`;
const isBeta = VERSION.includes('beta');

export const DEFAULT_DOMAIN = isBeta
? `https://connect.trezor.io/${VERSION}/`
: `https://connect.trezor.io/${versionN[0]}/`;

0 comments on commit 26c70f4

Please sign in to comment.