mirror of
https://github.com/iv-org/invidious.git
synced 2026-10-25 06:19:12 -05:00
fix: resolve #5888 - [Bug] Custom emojis are broken
This commit is contained in:
parent
049d591d29
commit
e709b4bca6
@ -83,7 +83,6 @@ function get_youtube_comments() {
|
||||
} else {
|
||||
comments.innerHTML = fallback;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
if (video_data.params.comments[1] === 'youtube')
|
||||
@ -113,10 +112,6 @@ function get_youtube_comments() {
|
||||
contentHtml: response.contentHtml,
|
||||
redditComments: video_data.reddit_comments_text,
|
||||
commentsText: video_data.comments_text.supplant({
|
||||
// toLocaleString correctly splits number with local thousands separator. e.g.:
|
||||
// '1,234,567.89' for user with English locale
|
||||
// '1 234 567,89' for user with Russian locale
|
||||
// '1.234.567,89' for user with Portuguese locale
|
||||
commentCount: response.commentCount.toLocaleString()
|
||||
})
|
||||
});
|
||||
@ -126,7 +121,7 @@ function get_youtube_comments() {
|
||||
comments.children[0].children[1].children[0].onclick = swap_comments;
|
||||
}
|
||||
},
|
||||
onNon200: onNon200, // declared above
|
||||
onNon200: onNon200,
|
||||
onError: function (xhr) {
|
||||
comments.innerHTML = spinnerHTML;
|
||||
},
|
||||
@ -184,8 +179,7 @@ function get_youtube_replies(target, load_more, load_replies) {
|
||||
body.innerHTML = fallback;
|
||||
},
|
||||
onTimeout: function (xhr) {
|
||||
console.warn('Pulling comments failed');
|
||||
body.innerHTML = fallback;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,10 +25,10 @@ function show_youtube_replies(event) {
|
||||
var body = target.parentNode.parentNode.children[1];
|
||||
body.style.display = '';
|
||||
|
||||
target.innerHTML = sub_text;
|
||||
target.innerHTML = inner_text;
|
||||
target.onclick = hide_youtube_replies;
|
||||
target.setAttribute('data-inner-text', inner_text);
|
||||
target.setAttribute('data-sub-text', sub_text);
|
||||
target.setAttribute('data-inner-text', sub_text);
|
||||
target.setAttribute('data-sub-text', inner_text);
|
||||
}
|
||||
|
||||
function get_youtube_replies(target, load_more) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user