Files
ColdBreeze-chat-web/src/index-widget.tsx
T
Tristan Yang 48ffdcc1b5 feat: i18n
2022-11-23 19:38:45 +08:00

16 lines
458 B
TypeScript

import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import Widget from "./widget/index";
import './assets/index.css';
import store from "./app/store";
import './i18n';
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
const hostId = new URLSearchParams(location.search).get("host");
root.render(
hostId ? <Provider store={store}>
<Widget hostId={Number(hostId)} />
</Provider> : null
);