Bugfix blacklisted emotes

fixed a bug where blacklisted emotes cut the text off
This commit is contained in:
pohky 2016-05-24 14:29:30 +02:00
parent 329d8bc55e
commit e8e82cb02b
2 changed files with 52 additions and 147 deletions

View File

@ -616,8 +616,7 @@ EmoteModule.prototype.injectEmote = function(node) {
} }
} }
} }
if ($.inArray(sw, bemotes) == -1) {
if ($.inArray(sw, bemotes) != -1) return;
if(typeof emotesTwitch !== 'undefind' && settingsCookie["bda-es-7"]) { if(typeof emotesTwitch !== 'undefind' && settingsCookie["bda-es-7"]) {
if(emotesTwitch.emotes.hasOwnProperty(sw) && sw.length >= 4) { if(emotesTwitch.emotes.hasOwnProperty(sw) && sw.length >= 4) {
@ -669,7 +668,7 @@ EmoteModule.prototype.injectEmote = function(node) {
return; return;
} }
} }
}
if(text == null) { if(text == null) {
text = w; text = w;
} else { } else {

98
js/main.min.js vendored

File diff suppressed because one or more lines are too long