fix lobby streams update removes more link

pull/6909/head
Thibault Duplessis 2020-07-01 07:37:24 +02:00
parent ccae1d080f
commit 81cc309824
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ module.exports = function(cfg, element) {
return l.slice(0, 2).toLowerCase();
});
langs.push($('html').attr('lang'));
$('.lobby__streams a, .event-spotlight').each(function() {
$('.lobby__streams .stream, .event-spotlight').each(function() {
var match = $(this).text().match(/\[(\w{2})\]/mi);
if (match && !langs.includes(match[1].toLowerCase())) $(this).hide();
});