fix name string
This commit is contained in:
parent
f511b6aea8
commit
d0065503c4
2
code.js
2
code.js
@ -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),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user