Created
November 14, 2012 18:25
-
-
Save steveosoule/4073849 to your computer and use it in GitHub Desktop.
JavaScript Secure/Non-Secure Check
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 (location.protocol === 'https:') { | |
var url="https://www.gidabavari.com/mm5/form/prod-form-process.php" | |
} else { | |
var url="http://www.gidabavari.com/mm5/form/prod-form-process.php" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment