Update gsmarena.js
This commit is contained in:
parent
dac6ebf032
commit
b6aa69edd2
1 changed files with 3 additions and 1 deletions
|
@ -110,9 +110,11 @@ function formatPhone(phone) {
|
||||||
.map(([label, key]) => `<b>${label}:</b> <code>${formattedPhone[key]}</code>`)
|
.map(([label, key]) => `<b>${label}:</b> <code>${formattedPhone[key]}</code>`)
|
||||||
.join("\n\n");
|
.join("\n\n");
|
||||||
|
|
||||||
|
const deviceNURL = <a href=`${formattedPhone.url}`>${formattedPhone.name}</a>
|
||||||
|
|
||||||
const deviceImage = phone.picture ? `<b>Device Image</b>: ${phone.picture}` : '';
|
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) {
|
async function fetchHtml(url) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue