From da4920014d06ede8628576cf29d000abcec0b8e3 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Fri, 10 Apr 2020 21:20:14 +0200 Subject: [PATCH] frontend side of handling specific games --- frontend/www/games.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/www/games.ts b/frontend/www/games.ts index 5b5c065..2d1edf3 100644 --- a/frontend/www/games.ts +++ b/frontend/www/games.ts @@ -29,7 +29,6 @@ async function on_load() { const urlVars = new URLSearchParams(window.location.search); if (urlVars.get("game") && urlVars.get("name")) { - console.log(urlVars.get("game")+' '+urlVars.get("name")) handle(urlVars.get("game"),urlVars.get("name")) } else if (options[0]) { const options_div = options[0]; @@ -41,6 +40,8 @@ async function on_load() { } window.addEventListener("load", on_load, false); +window.addEventListener("load", on_load); + export function handle(location, name: string) { game_file = location; game_name = name;