blob: c8dcda14b5e9a8633a0b1c6db52af5589a73ea07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { createRoot } from 'react-dom/client';
import App from './watch/App.jsx';
const url = new URL(window.location.href);
const path = url.pathname;
const match = path.match(/\/golf\/(\d+)\/watch\/$/);
if (match) {
const gameId = match[1];
createRoot(document.getElementById('app')).render(<App gameId={gameId} />);
}
|