Skip to content

Commit

Permalink
redirect https to http
Browse files Browse the repository at this point in the history
  • Loading branch information
dejavu1987 committed Nov 8, 2023
1 parent 11c4d66 commit ed72e14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
</GeneralSettingsProvider>
</React.StrictMode>
);

if (window.location.protocol === 'https:') {
window.location.href =
'http:' + window.location.href.substring(window.location.protocol.length);
}

0 comments on commit ed72e14

Please sign in to comment.