Created
November 7, 2012 10:50
-
-
Save adeolaawoyemi/4030828 to your computer and use it in GitHub Desktop.
Javascript protocol (SSL) resource switch
This file contains hidden or 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
script.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://my.url.com/file.ext'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment