frontend side of handling specific games
This commit is contained in:
parent
2431a7f4c7
commit
da4920014d
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,6 @@ async function on_load() {
|
||||||
const urlVars = new URLSearchParams(window.location.search);
|
const urlVars = new URLSearchParams(window.location.search);
|
||||||
|
|
||||||
if (urlVars.get("game") && urlVars.get("name")) {
|
if (urlVars.get("game") && urlVars.get("name")) {
|
||||||
console.log(urlVars.get("game")+' '+urlVars.get("name"))
|
|
||||||
handle(urlVars.get("game"),urlVars.get("name"))
|
handle(urlVars.get("game"),urlVars.get("name"))
|
||||||
} else if (options[0]) {
|
} else if (options[0]) {
|
||||||
const options_div = <HTMLDivElement> options[0];
|
const options_div = <HTMLDivElement> options[0];
|
||||||
|
@ -41,6 +40,8 @@ async function on_load() {
|
||||||
}
|
}
|
||||||
window.addEventListener("load", on_load, false);
|
window.addEventListener("load", on_load, false);
|
||||||
|
|
||||||
|
window.addEventListener("load", on_load);
|
||||||
|
|
||||||
export function handle(location, name: string) {
|
export function handle(location, name: string) {
|
||||||
game_file = location;
|
game_file = location;
|
||||||
game_name = name;
|
game_name = name;
|
||||||
|
|
Loading…
Reference in a new issue