15 lines
416 B
TypeScript
15 lines
416 B
TypeScript
|
/* @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');
|
||
|
}
|