Critical bugfix: Some statuses cause Javascript errors and prevent the timeline from further rendering

This commit is contained in:
nipos 2019-09-07 15:35:12 +02:00
parent 8d1394f54a
commit 660e6c46e6
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ $('.overlay_redirect_invidious').removeClass('invisible');
}
}
function checkStatusLinks(text) {
$(text).find("a").each(function(i) {
$("<span>"+text+"</span>").find("a").each(function(i) {
const ytcom = $(this).attr('href').match(/https?:\/\/(www\.)?youtube\.com\/watch\?v=([a-zA-Z\d_-]+)/);
const htcom = $(this).attr('href').match(/https?:\/\/(www\.)?hooktube\.com\/watch\?v=([a-zA-Z\d_-]+)/);
const ivcom = $(this).attr('href').match(/https?:\/\/(www\.)?invidio\.us\/watch\?v=([a-zA-Z\d_-]+)/);