[marketplace] Fix some problem with parsing page with rating.

This commit is contained in:
AlexeyMatveev686
2023-05-18 09:34:13 +03:00
parent b102831b15
commit 26bb7cc8da

View File

@ -561,7 +561,7 @@ function getAllPluginsData(bFirstRender, bshowMarketplace) {
makeRequest(proxyUrl, 'POST', null, body).then(function(data) {
let start = data.indexOf('<head>');
let end = data.indexOf('</head>') + 7;
let tmp = data.substring(0, start) + data.substring(end);
let tmp = data.substring(0, start) + data.substring(end).replace(/[\\n,\\]/g,'');
document.getElementById('test_git').innerHTML = tmp;
let first = Number(document.getElementById('result-row-1').childNodes[1].childNodes[3].innerText.replace(/[\n\s%]/g,''));
let second = Number(document.getElementById('result-row-2').childNodes[1].childNodes[3].innerText.replace(/[\n\s%]/g,''));