nico-martin's picture
nico-martin HF Staff
small adjustments
97ce2e0
raw
history blame
392 Bytes
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
</StrictMode>
);
window.addEventListener("hashchange", () =>
window.parent.postMessage(
{
hash: window.location.hash,
},
"https://huggingface.co"
)
);