fix name string

This commit is contained in:
Alexander Popov 2023-01-04 23:35:30 +03:00
parent f511b6aea8
commit d0065503c4

View File

@ -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),
};