{gameData.name}
-{gameData.description}
@@ -100,12 +103,12 @@ if (!gameData) { iframe.addEventListener("click", () => { iframe.contentWindow?.focus(); - }) + }); document.addEventListener("astro:after-swap", () => { let iframe = document.getElementById("game-frame") as HTMLIFrameElement; iframe?.contentWindow?.focus(); - }) + }); let fullscreen = document.getElementById("game-fullscreen") as HTMLImageElement; @@ -115,4 +118,4 @@ if (!gameData) { iframe.focus(); } }); - \ No newline at end of file + diff --git a/src/pages/unity/[game].astro b/src/pages/game/flash/[game].astro similarity index 66% rename from src/pages/unity/[game].astro rename to src/pages/game/flash/[game].astro index 5927f6f..7887dad 100644 --- a/src/pages/unity/[game].astro +++ b/src/pages/game/flash/[game].astro @@ -2,14 +2,15 @@ export const prerender = false; --- - + -
An error occurred.
Refresh @@ -51,5 +52,6 @@ export const prerender = false;