Created
June 8, 2020 18:07
-
-
Save nathanoffline/8847478265736fdb6fa28346534be13d to your computer and use it in GitHub Desktop.
Force https
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
window.location.href.match("https")||(window.location.href=window.location.href.replace("http","https")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment