Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
fix ugg endpoint not found
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeNote committed Apr 23, 2019
1 parent fc65119 commit e0dfc29
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/ugg.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,11 @@ function extractPage(champion) {
async function getDataSource(champion) {
try {
const lolVersions = await getJson(riotVersionEndpoint);
const uGGStatsVersions = await getJson(uGGDataVersionsEndpoint);

let lolVersion = lolVersions[0];
let lolVersionUGG = getUGGFormattedLolVersion(lolVersion);

if (!uGGStatsVersions[lolVersionUGG]) {
lolVersion = lolVersions[1];
lolVersionUGG = getUGGFormattedLolVersion(lolVersion);
}

const overviewVersion = "1.2.5"; // uGGStatsVersions[lolVersionUGG].overview;
const overviewVersion = "1.2.5";

const championDataUrl = `https://static.u.gg/assets/lol/riot_static/${lolVersion}/data/en_US/champion/${champion}.json`;

Expand Down

0 comments on commit e0dfc29

Please sign in to comment.