aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorTom Schmidt <imtomhschmidt@gmail.com>2018-03-10 08:10:25 +0800
committerTom Schmidt <imtomhschmidt@gmail.com>2018-03-10 08:10:25 +0800
commit494bff4bc0c09fbecf865a524f979e3803f79eba (patch)
treefb520e687440dc3f7acfa303a3ea5eb663985923 /packages/website
parent824ee8a3dce2e3bd977edafec30dd9b84efc4280 (diff)
downloaddexon-sol-tools-494bff4bc0c09fbecf865a524f979e3803f79eba.tar.gz
dexon-sol-tools-494bff4bc0c09fbecf865a524f979e3803f79eba.tar.zst
dexon-sol-tools-494bff4bc0c09fbecf865a524f979e3803f79eba.zip
Fixed merge issue
Diffstat (limited to 'packages/website')
-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;
- },
};