Created
August 6, 2014 03:09
-
-
Save gmlnchv/8be9dbf597180575ff1f to your computer and use it in GitHub Desktop.
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
if (!window.location.origin) { // Some browsers (mainly IE) does not have this property, so we need to build it manually... | |
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