diff --git a/code.js b/code.js index fa004d3..a49ef4c 100644 --- a/code.js +++ b/code.js @@ -32,7 +32,7 @@ function getData(value) { id: parseInt(value.childNodes[1].href.split('/')[6]), url: `https://store.steampowered.com/app/${value.childNodes[1].href.split('/')[6]}/`, card_url: value.childNodes[1].href, - name: value.getElementsByClassName('badge_title')[0].innerText.trim().replace(/[\r\n\t]/g, ''), + name: value.getElementsByClassName('badge_title')[0].childNodes[0].textContent.replace(/[\r\n\t]/g, '').trim(), dropLeft: parseInt(cardsDropLeft), };