stormpath / stormpath-sdk-angularjs

User Management for AngularJS (1.x) applications
http://docs.stormpath.com/angularjs/sdk/
Apache License 2.0
165 stars 58 forks source link

Issue/214 - Fix IE11 error for $isCurrentDomain #215

Closed drcampbell closed 7 years ago

drcampbell commented 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

robertjd commented 7 years ago

Thanks @drcampbell for debugging this with me!