chs/src-web/index.tsx

15 lines
416 B
TypeScript
Raw Normal View History

2022-10-31 13:25:32 +00:00
/* @refresh reload */
import { render } from 'solid-js/web';
import 'solid-devtools';
import App from './App';
import './main.css';
import "@fontsource/noto-sans-symbols-2";
const search = new URLSearchParams(window.location.search);
if (search.has('game_id')) {
render(() => <App gameId={search.get('game_id')!} />, document.getElementById('root') as HTMLElement);
} else {
console.error('no game id');
}