Skip to content

Commit

Permalink
feat: trezor service dev URLs default to browser host. dont assume local
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadouts authored and bucko13 committed Sep 14, 2023
1 parent aa4ed27 commit 3d7ffb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/trezor.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ const ENV_TREZOR_BLOCKBOOK_URL =
env_variables.TREZOR_BLOCKBOOK_URL ||
env_variables.REACT_APP_TREZOR_BLOCKBOOK_URL;

const TREZOR_CONNECT_URL = ENV_TREZOR_CONNECT_URL || "https://localhost:8088/";
const TREZOR_CONNECT_URL =
ENV_TREZOR_CONNECT_URL || `https://${window.location.hostname}:8088/`;
const TREZOR_BLOCKBOOK_URL =
ENV_TREZOR_BLOCKBOOK_URL || "http://localhost:3035";
ENV_TREZOR_BLOCKBOOK_URL || `http://${window.location.hostname}:3035/`;

const TREZOR_DEV =
env_variables.TREZOR_DEV || env_variables.REACT_APP_TREZOR_DEV;
Expand Down

0 comments on commit 3d7ffb3

Please sign in to comment.