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