X-Git-Url: https://gitweb.ps.run/lolstats/blobdiff_plain/7254b601bd7a577fc244c45b35e0364a40166dbb..d321fbf9c21bbc256215f88edc98296701c6b328:/html/script.js diff --git a/html/script.js b/html/script.js index 92be426..d97fcc4 100644 --- a/html/script.js +++ b/html/script.js @@ -4,7 +4,7 @@ function getRegions() { return [ "euw", "na", "kr", "br" ]; } function getChampions() { - return [ "Aatrox", "Annie", "Braum" ]; + return [ {name: "Aatrox"}, {name: "Annie"}, {name: "Braum"} ]; } function getInfo() { app.summoner = $("#nameinput").val(); @@ -12,7 +12,7 @@ function getInfo() { } function setUrl() { window.history.pushState("object or string", "Title", - "/?summoner=" + + "/lol?summoner=" + app.summoner + "®ion=" + app.region +