Skip to content

Commit

Permalink
Fix riotClientHeaders not imported
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgi-o committed May 25, 2024
1 parent 8711058 commit fa49a15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion valorant/battlepass.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const getBattlepassProgress = async (interaction, maxlevel, id=interactio
"Authorization": "Bearer " + user.auth.rso,
"X-Riot-Entitlements-JWT": user.auth.ent,
"X-Riot-ClientVersion": (await getValorantVersion()).riotClientVersion,
...RIOT_CLIENT_HEADERS,
...riotClientHeaders(),
}
});

Expand Down
2 changes: 1 addition & 1 deletion valorant/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const getPrices = async (gameVersion, id = null) => {
headers: {
"Authorization": "Bearer " + user.auth.rso,
"X-Riot-Entitlements-JWT": user.auth.ent,
...RIOT_CLIENT_HEADERS,
...riotClientHeaders(),
}
});
console.assert(req.statusCode === 200, `Valorant skins prices code is ${req.statusCode}!`, req);
Expand Down
3 changes: 2 additions & 1 deletion valorant/shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
formatNightMarket,
getPuuid,
isMaintenance, isSameDay,
userRegion
userRegion,
riotClientHeaders,
} from "../misc/util.js";
import { addBundleData, getSkin, getSkinFromSkinUuid } from "./cache.js";
import { addStore } from "../misc/stats.js";
Expand Down

0 comments on commit fa49a15

Please sign in to comment.