diff --git a/src/consts/WebsiteType.js b/src/consts/LeaderboardType.js similarity index 100% rename from src/consts/WebsiteType.js rename to src/consts/LeaderboardType.js diff --git a/src/utils/utils.js b/src/utils/utils.js index 813bbf4..6f0e83b 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -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) {