Skip to content

Instantly share code, notes, and snippets.

@danielt69
Created July 6, 2016 14:13
Show Gist options
  • Save danielt69/9f2ff87d49dc1bf6cb43b53efc90b291 to your computer and use it in GitHub Desktop.
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/
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