Files
quoridor/src/index.tsx
2025-09-24 16:49:28 +08:00

11 lines
355 B
TypeScript

/* @refresh reload */
import { render } from 'solid-js/web'
import './index.css'
import App from './App.tsx'
import Game from './Game.tsx'
import { LocalGameStatus } from './model.tsx'
const root = document.getElementById('root')
render(() => window.location.protocol === 'file:' ? <Game offline={true} game={new LocalGameStatus(0)}/> : <App />, root!)