From 242943e5b023ce40eb3be826c418a478d4672f78 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 24 Aug 2026 19:29:30 -0400 Subject: Send name to framing --- 2026/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '2026/index.html') 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(); } } -- cgit v1.3.1