Created
September 8, 2020 05:39
-
-
Save jonasjohansson/1e580e1635c02683a980ee48a2b43169 to your computer and use it in GitHub Desktop.
Glitch HTTPS redirect
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:') { | |
location.href = 'https:' + window.location.href.substring(window.location.protocol.length) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment