Created
July 6, 2016 14:13
-
-
Save danielt69/9f2ff87d49dc1bf6cb43b53efc90b291 to your computer and use it in GitHub Desktop.
A fix for window.location.origin in Internet Explorer From:
http://tosbourn.com/a-fix-for-window-location-origin-in-internet-explorer/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.location.origin = window.location.origin || window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment