diff options
| author | LLLL Colonq <llll@colonq> | 2026-08-24 19:29:30 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-08-24 19:29:30 -0400 |
| commit | 242943e5b023ce40eb3be826c418a478d4672f78 (patch) | |
| tree | 718e4c1ba759ea43d91f80cabd21585a71f787fb /2026/index.html | |
| parent | 678d94b4650e298b7aa38d7b3e3e90ed625f0e3e (diff) | |
Send name to framing
Diffstat (limited to '2026/index.html')
| -rw-r--r-- | 2026/index.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/2026/index.html b/2026/index.html index 8c2163e..f6038b1 100644 --- a/2026/index.html +++ b/2026/index.html @@ -177,7 +177,9 @@ function confirmStartGame(idx, verb) { if (state.mode == "starting" && state.idx === idx) { setState({mode: "running", idx: idx}); - framing.contentWindow.postMessage({op: "startgame", verb: verb}); + let nm = microgames[idx].url.match(/\/games\/(\w+)\/index\.html/)[1]; + console.log(nm); + framing.contentWindow.postMessage({op: "startgame", name: nm, verb: verb}); microgames[idx].loaded.contentWindow.focus(); } } |
