Skip to content

Commit

Permalink
fix twemojis in bio
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 12, 2023
1 parent bb56e38 commit d67d4bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion layouts/profile/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,10 @@ async function renderProfile() {
document.getElementById('profile-bio').append(document.createElement('br'), translateBtn);
}

if(vars.enableTwemoji) twemoji.parse(document.getElementById('profile-name'));
if(vars.enableTwemoji) {
twemoji.parse(document.getElementById('profile-name'));
twemoji.parse(document.getElementById('profile-bio'));
}
document.getElementById('profile-stat-tweets-value').innerText = formatLargeNumber(pageUser.statuses_count).replace(/\s/g, ',');
document.getElementById('profile-stat-following-value').innerText = formatLargeNumber(pageUser.friends_count).replace(/\s/g, ',');
document.getElementById('profile-stat-followers-value').innerText = formatLargeNumber(pageUser.followers_count).replace(/\s/g, ',');
Expand Down

0 comments on commit d67d4bc

Please sign in to comment.