Merge pull request #445 from 0xProject/feature/web3-logging
Fixed merge issue
This commit is contained in:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user