Update name for LeaderboardType class

This commit is contained in:
Liam 2022-10-19 17:56:07 +01:00
parent b9e65db5b2
commit 7ecc418471
2 changed files with 5 additions and 5 deletions

@ -1,9 +1,9 @@
import SteamIdCache from "../../src/caches/SteamIdCache";
import WebsiteTypes from "../consts/WebsiteType";
import LeaderboardType from "../consts/LeaderboardType";
const TO_CHECK = [
WebsiteTypes.ScoreSaber.ApiUrl,
WebsiteTypes.BeatLeader.ApiUrl,
LeaderboardType.ScoreSaber.ApiUrl,
LeaderboardType.BeatLeader.ApiUrl,
];
export default class Utils {
@ -12,11 +12,11 @@ export default class Utils {
/**
* Returns the information for the given website type.
*
* @param {WebsiteTypes} website
* @param {LeaderboardType} website
* @returns The website type's information.
*/
static getWebsiteApi(website) {
return WebsiteTypes[website];
return LeaderboardType[website];
}
static openInNewTab(url) {