andru26
4/24/2018 - 5:40 PM

Get subdomain name

subdomain_name = window.location.hostname.split('.').length >= 3 ? window.location.hostname.split('.')[0]:false