fix name string
This commit is contained in:
@@ -32,7 +32,7 @@ function getData(value) {
|
|||||||
id: parseInt(value.childNodes[1].href.split('/')[6]),
|
id: parseInt(value.childNodes[1].href.split('/')[6]),
|
||||||
url: `https://store.steampowered.com/app/${value.childNodes[1].href.split('/')[6]}/`,
|
url: `https://store.steampowered.com/app/${value.childNodes[1].href.split('/')[6]}/`,
|
||||||
card_url: value.childNodes[1].href,
|
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),
|
dropLeft: parseInt(cardsDropLeft),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user