main.tsx raw
1 import React from "react";
2 import ReactDOM from "react-dom/client";
3 import App from "src/App.tsx";
4 import "src/index.css";
5 import { isHttpMode } from "src/utils/isHttpMode";
6
7 // redirect hash router links to browser router links
8 // TODO: remove after 2026-01-01
9 if (isHttpMode() && window.location.href.indexOf("/#/") > -1) {
10 window.location.href = window.location.href.replace("/#/", "/");
11 } else {
12 ReactDOM.createRoot(document.getElementById("root")!).render(
13 <React.StrictMode>
14 <App />
15 </React.StrictMode>
16 );
17 }
18