Update gsmarena.js

This commit is contained in:
DaviDev 2024-09-08 11:27:19 -03:00 committed by GitHub
parent dac6ebf032
commit b6aa69edd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,9 +110,11 @@ function formatPhone(phone) {
.map(([label, key]) => `<b>${label}:</b> <code>${formattedPhone[key]}</code>`)
.join("\n\n");
const deviceNURL = <a href=`${formattedPhone.url}`>${formattedPhone.name}</a>
const deviceImage = phone.picture ? `<b>Device Image</b>: ${phone.picture}` : '';
return `<b>${formattedPhone.name}</b>\n\n${attributes}\n\n${deviceImage}`;
return `<b>${deviceNURL}</b>\n\n${attributes}\n\n${deviceImage}`;
}
async function fetchHtml(url) {