diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-07 20:25:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-07 20:25:15 +0800 |
commit | 6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d (patch) | |
tree | 7d9030c062e22043cd49f27527c9d4537e41e618 /packages/react-shared/src/ts/utils | |
parent | 327cc307b35bf4a38c86f87c45718fd456025035 (diff) | |
download | dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.tar dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.tar.gz dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.tar.bz2 dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.tar.lz dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.tar.xz dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.tar.zst dexon-0x-contracts-6f8a70834b72d678cd9d171d7bb0a3a2cfb4134d.zip |
Add onSelectedVersion callback so it can be handled in any way the caller wishes
Diffstat (limited to 'packages/react-shared/src/ts/utils')
-rw-r--r-- | packages/react-shared/src/ts/utils/utils.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/packages/react-shared/src/ts/utils/utils.ts b/packages/react-shared/src/ts/utils/utils.ts index 0d2e045b8..ebe896bbc 100644 --- a/packages/react-shared/src/ts/utils/utils.ts +++ b/packages/react-shared/src/ts/utils/utils.ts @@ -30,12 +30,6 @@ export const utils = { const id = name.replace(/ /g, '-'); return id; }, - getCurrentBaseUrl() { - const port = window.location.port; - const hasPort = !_.isUndefined(port); - const baseUrl = `https://${window.location.hostname}${hasPort ? `:${port}` : ''}`; - return baseUrl; - }, getEtherScanLinkIfExists(addressOrTxHash: string, networkId: number, suffix: EtherscanLinkSuffixes): string { const networkName = constants.NETWORK_NAME_BY_ID[networkId]; if (_.isUndefined(networkName)) { |