OSDN Git Service

update the dapp development guide to v1.4.0
[bytom/Byone.git] / src / utils / GenericTools.js
1
2 export const strippedHost = () => {
3     let host = location.hostname;
4
5     // Replacing www. only if the domain starts with it.
6     if(host.indexOf('www.') === 0) host = host.replace('www.', '');
7
8     return host;
9 };