mirror of
https://github.com/lexogrine/dota2-react-hud.git
synced 2025-12-10 01:52:49 +01:00
fixed animated asset url
This commit is contained in:
parent
e422cd3fc9
commit
fd7e4b0d3c
@ -22,7 +22,7 @@ export const getAssetURL = (
|
|||||||
) => {
|
) => {
|
||||||
if (!asset) return "";
|
if (!asset) return "";
|
||||||
if (assetType === "heroes_animated") {
|
if (assetType === "heroes_animated") {
|
||||||
return `${apiUrl}static/dota2/heroes/animated/${asset}.webm`;
|
return `${apiUrl}static/dota2/heroes/animated/${asset.startsWith("npc_dota_hero_")? asset : `npc_dota_hero_${asset}`}.webm`;
|
||||||
}
|
}
|
||||||
if (assetType === "heroes_icons") {
|
if (assetType === "heroes_icons") {
|
||||||
return `${apiUrl}static/dota2/heroes/icons/${asset}.png`;
|
return `${apiUrl}static/dota2/heroes/icons/${asset}.png`;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user