From 494bff4bc0c09fbecf865a524f979e3803f79eba Mon Sep 17 00:00:00 2001 From: Tom Schmidt Date: Fri, 9 Mar 2018 16:10:25 -0800 Subject: Fixed merge issue --- packages/website/ts/utils/utils.ts | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'packages/website') 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; - }, }; -- cgit v1.2.3