function getDomainHost(url) {
  if (!isBrowser) return null
  const a = document.createElement('a')
  a.setAttribute('href', url)
  return a.hostname
}
Get host domain of url
@param  {String} url - href of page
@return {String} hostname of page

@example
 getDomainHost('https://subdomain.my-site.com/')
 > subdomain.my-site.com