From df5abfc272a151c51f0e5e82214cf7aff8cfa880 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 19 Jul 2024 19:05:55 +0900 Subject: initial commit --- frontend/src/game.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 frontend/src/game.jsx (limited to 'frontend/src/game.jsx') diff --git a/frontend/src/game.jsx b/frontend/src/game.jsx new file mode 100644 index 0000000..8b31d54 --- /dev/null +++ b/frontend/src/game.jsx @@ -0,0 +1,12 @@ +import { createRoot } from 'react-dom/client'; +import App from './game/App.jsx'; + +const url = new URL(window.location.href); +const path = url.pathname; +const match = path.match(/\/golf\/(\d+)\/(a|b)\/$/); +if (match) { + const gameId = match[1]; + const team = match[2]; + + createRoot(document.getElementById('app')).render(); +} -- cgit v1.2.3-70-g09d2