Update populate.js

This commit is contained in:
Dylan H 2020-06-02 15:32:50 -04:00 committed by GitHub
parent 7e478ecb0b
commit f29fdb9d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ module.exports.updateHTML = (username, opts) => {
icon.setAttribute("type", "image/png");
document.getElementsByTagName("head")[0].appendChild(icon);
document.getElementById(
"profile_img"
).style.background = `url('${user.avatar_url}') center center`;
document.getElementsByTagName("head")[0].innerHTML += `
<meta name="description" content="${user.bio}" />
<meta property="og:image" content="${user.avatar_url}" />