Skip to content

Commit

Permalink
feat(connect-web): usb permissions to support beta url
Browse files Browse the repository at this point in the history
  • Loading branch information
karliatto committed May 25, 2024
1 parent c5f0f07 commit 36cde8b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
const VERSION = '9.2.4-beta.1';
const versionN = VERSION.split('.').map(s => parseInt(s, 10));
// const DIRECTORY = `${ versionN[0] }${ (versionN[1] > 0 ? `.${versionN[1]}` : '') }/`;
const DIRECTORY = `${versionN[0]}/`;
const url = `https://connect.trezor.io/${DIRECTORY}`;

const isBeta = VERSION.includes('beta');

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

/* Handling messages from usb permissions iframe */
const switchToPopupTab = event => {
Expand Down

0 comments on commit 36cde8b

Please sign in to comment.