diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/GameCanvas.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/GameCanvas.tsx b/src/components/GameCanvas.tsx index b6c585d..98ba506 100644 --- a/src/components/GameCanvas.tsx +++ b/src/components/GameCanvas.tsx @@ -11,7 +11,9 @@ export interface GameCanvasProps { export const GameCanvas = ({ width, height }: GameCanvasProps) => { const canvasRef = useRef<HTMLCanvasElement>(null); const [game, setGame] = useState<TheAbstractionEngine>(); - const [ready, setReady] = useState(false); + // TODO: go back to this after done + // const [ready, setReady] = useState(false); + const [ready, setReady] = useState(document.location.hostname.includes("localhost")); const [loading, setLoading] = useState(true); useEffect(() => { |