Created
June 15, 2021 07:16
-
-
Save sushiljainam/8c1f8681cb654006088120a7651cbe7d to your computer and use it in GitHub Desktop.
https redirect via browser
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
if (location.protocol !== 'https:') { | |
location.replace('https:'+location.href.substring(location.protocol.length)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment