Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Hotfix for TruckersMP API
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmaxik committed Jun 4, 2021
1 parent 8c15a11 commit 822b80f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const queryPlayer = async (request) => {
const key = `player:${request.steamId}`;
const playerInfo = await readFromCache(key, async function () {
await delay(request.key)
const response = await fetch(`https://api.truckersmp.com/v2/player/${request.steamId}?ref=truckersmp-steam-helper&v=${cacheBusting()}`)
const response = await fetch(`https://api.truckersmp.com/v2/player/${request.steamId}`)

return await response.json()
})
Expand Down

0 comments on commit 822b80f

Please sign in to comment.