]> gitweb.ps.run Git - lolstats/blobdiff - html/script.js
changes
[lolstats] / html / script.js
index 92be4265c04c5984e51f1002301fb59dd83e2280..d97fcc4c10ba0dd8a3443880fa8bd6319e2b779d 100644 (file)
@@ -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 +
     "&region=" +
     app.region +