From 7bb7846f4957ba6e058e550bdd8c4208dcfb17e3 Mon Sep 17 00:00:00 2001 From: Shashank Atreya <43470991+godarkrai@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:20:48 +0530 Subject: [PATCH] implement items according to new structure (#25) Co-authored-by: Shashank Atreya --- resources/scripts/ext.dota2WebApi.toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/ext.dota2WebApi.toolbar.js b/resources/scripts/ext.dota2WebApi.toolbar.js index c2c9c53..bfae8b3 100644 --- a/resources/scripts/ext.dota2WebApi.toolbar.js +++ b/resources/scripts/ext.dota2WebApi.toolbar.js @@ -530,7 +530,7 @@ $( () => { factionRoster += '|den=' + player.denies; factionRoster += '|gpm=' + player.goldPerMinute; factionRoster += '|xpm=' + player.xpPerMinute; - factionRoster += '|items=' + player.items.join( ',' ); + factionRoster += '|items=' + player.items.map( ( item ) => item.name ).join( ',' ); // @TODO LONE DRUID BEAR ITEMS factionRoster += '}}\n'; }