Closed drcampbell closed 7 years ago
Switch $isCurrentDomain to compare $window.location.host to link.hostname.
On IE11, the old link.host returns domain_name:443, while other browsers return domain_name. link.hostname returns only the domain_name in all browsers.
Tested in Edge, IE11, Chrome
Thanks @drcampbell for debugging this with me!
Switch $isCurrentDomain to compare $window.location.host to link.hostname.
On IE11, the old link.host returns domain_name:443, while other browsers return domain_name. link.hostname returns only the domain_name in all browsers.
Tested in Edge, IE11, Chrome