refactor(onitama-game): simplify GameUI initialization

This commit is contained in:
hypercross 2026-04-19 11:31:03 +08:00
parent 3afe78f54f
commit c7ef992082
1 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
import { h } from 'preact';
import { GameUI } from 'boardgame-phaser';
import './style.css';
import { GameUI } from "boardgame-phaser";
import "./style.css";
import App from "@/ui/App";
const ui = new GameUI({
container: document.getElementById('ui-root')!,
container: "ui-root",
root: <App />,
});