better naming

This commit is contained in:
sose 2021-04-06 01:45:44 +00:00
parent bea705dda9
commit d3f74c17db
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ function update_scores(hltv_url) {
var lan;
var team_names = [];
var team_countries = [];
var current_scores = [];
var rounds_won = [];
var maps_won = [];
@ -72,7 +72,7 @@ function update_scores(hltv_url) {
if (score_row.className === "livescore twoRowExtraRow") {
var score_el = score_row.querySelector("[data-livescore-current-map-score='']");
var maps_won_el = score_row.querySelector("[data-livescore-maps-won-for='']");
current_scores.push(score_el.innerText);
rounds_won.push(score_el.innerText);
maps_won.push(maps_won_el.innerText);
} else if (score_row.className.includes("twoRowExtraRow won") ||
score_row.className.includes("twoRowExtraRow lost")) {
@ -95,7 +95,7 @@ function update_scores(hltv_url) {
"lan": lan,
"team_names": team_names,
"team_countries": team_countries,
"current_scores": current_scores,
"rounds_won": rounds_won,
"maps_won": maps_won
});