From a37405047e519b896bf1a9c13798b79f175dc197 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Fri, 17 Apr 2020 17:09:59 +0200 Subject: [PATCH] add share button --- frontend/www/games.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/www/games.ts b/frontend/www/games.ts index 8e32bfe..5b5c065 100644 --- a/frontend/www/games.ts +++ b/frontend/www/games.ts @@ -29,7 +29,8 @@ async function on_load() { const urlVars = new URLSearchParams(window.location.search); if (urlVars.get("game") && urlVars.get("name")) { - handle("/games/"+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]; if (options_div.children[0]) { @@ -40,8 +41,6 @@ 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;