aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-03-10 08:19:01 +0800
committerGitHub <noreply@github.com>2018-03-10 08:19:01 +0800
commitfc7e7d9331692510b2cf5baebcff948ebf0afc07 (patch)
treefb520e687440dc3f7acfa303a3ea5eb663985923 /packages/website/ts/utils
parent824ee8a3dce2e3bd977edafec30dd9b84efc4280 (diff)
parent494bff4bc0c09fbecf865a524f979e3803f79eba (diff)
downloaddexon-sol-tools-fc7e7d9331692510b2cf5baebcff948ebf0afc07.tar
dexon-sol-tools-fc7e7d9331692510b2cf5baebcff948ebf0afc07.tar.gz
dexon-sol-tools-fc7e7d9331692510b2cf5baebcff948ebf0afc07.tar.bz2
dexon-sol-tools-fc7e7d9331692510b2cf5baebcff948ebf0afc07.tar.lz
dexon-sol-tools-fc7e7d9331692510b2cf5baebcff948ebf0afc07.tar.xz
dexon-sol-tools-fc7e7d9331692510b2cf5baebcff948ebf0afc07.tar.zst
dexon-sol-tools-fc7e7d9331692510b2cf5baebcff948ebf0afc07.zip
Merge pull request #445 from 0xProject/feature/web3-logging
Fixed merge issue
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r--packages/website/ts/utils/utils.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index 82e5616e1..a40db805b 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -268,18 +268,6 @@ export const utils = {
const baseUrl = `https://${window.location.hostname}${hasPort ? `:${port}` : ''}`;
return baseUrl;
},
- scrollToHash(hash: string, containerId: string): void {
- let finalHash = hash;
- if (_.isEmpty(hash)) {
- finalHash = configs.SCROLL_TOP_ID; // scroll to the top
- }
-
- scroller.scrollTo(finalHash, {
- duration: 0,
- offset: 0,
- containerId,
- });
- },
web3ProviderToString(provider: Web3Provider): string {
let parsedProviderName = provider.constructor.name;
if (provider.constructor.name === 'MetamaskInpageProvider') {
@@ -299,10 +287,4 @@ export const utils = {
window.onload = () => resolve();
});
},
- getCurrentBaseUrl() {
- const port = window.location.port;
- const hasPort = !_.isUndefined(port);
- const baseUrl = `https://${window.location.hostname}${hasPort ? `:${port}` : ''}`;
- return baseUrl;
- },
};