X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lmno.js;h=0e961b0684f5719e4490c7f1af35f0d99e35bfa0;hb=10dcbde4263378549fd60162e3c7cec90c232d46;hp=e4785a86d4fe8ae282ae2102a3c3bebaf2b8f414;hpb=c2b3628fe854407ea6782e8c736df16b9c6719dc;p=lmno.games diff --git a/lmno.js b/lmno.js index e4785a8..0e961b0 100644 --- a/lmno.js +++ b/lmno.js @@ -16,6 +16,9 @@ function join_loadend(request, game_id) { add_message("danger", game_id + " is not a valid game ID. Try again."); return; } + + /* Now that its validated, send the browser to the URL for the game_id. */ + window.location.href = "/" + game_id; } function lmno_join(form) { @@ -43,7 +46,6 @@ function new_loadend() { } function lmno_new(engine) { - console.log("In lmno_new"); const request = new XMLHttpRequest(); request.addEventListener("loadend", new_loadend);