more api fixes

This commit is contained in:
Yannik Schmidt
2021-07-26 21:07:57 +02:00
parent bcb460bc24
commit eb967900d0
4 changed files with 56 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
positions = [ "Top", "Jungle", "Mid", "Support" , "Bottom" ]
positions = [ "Top", "Jungle", "Mid", "Bottom", "Support" ]
acceptedParser = [ "top", "jungle", "mid", "sup" , "bot", "adc", "support", "bottom", "*" ]
sides = [ "left", "right"]
@@ -6,7 +6,7 @@ var checkPlayerFunc = function checkPlayer() {
if(this.value == ""){
return
}
url = "/player?id=" + this.value
url = "/player-api-cache?id=" + this.value
fetch(url).then(r => {
if(r.status == 200){
this.style.background = "#74bb74"