Created
          March 24, 2023 08:20 
        
      - 
      
- 
        Save bclswl0827/e8cdcc97021f1c6d6d514aa5c1551645 to your computer and use it in GitHub Desktop. 
    Force HTTP with sdrotg.com
  
        
  
    
      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
    
  
  
    
  | const protocol = window.location.protocol; | |
| const hostname = window.location.hostname; | |
| if (protocol === "https:" && hostname.includes("sdrotg.com")) { | |
| location.replace(`http:${location.href.substring(location.protocol.length)}`); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment