Merge remote-tracking branch 'refs/remotes/origin/master' into beta
This commit is contained in:
commit
9f7d0b6b2c
|
@ -70,6 +70,10 @@ EmoteModule.prototype.injectEmote = function(node) {
|
||||||
|
|
||||||
words.some(function(word) {
|
words.some(function(word) {
|
||||||
|
|
||||||
|
if(word.length < 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(emotesTwitch.emotes.hasOwnProperty(word)) {
|
if(emotesTwitch.emotes.hasOwnProperty(word)) {
|
||||||
parentInnerHTML = parentInnerHTML.replace(word, "<img src=" + twitchEmoteUrlStart + emotesTwitch.emotes[word].image_id + twitchEmoteUrlEnd + " ><\/img>");
|
parentInnerHTML = parentInnerHTML.replace(word, "<img src=" + twitchEmoteUrlStart + emotesTwitch.emotes[word].image_id + twitchEmoteUrlEnd + " ><\/img>");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -233,6 +233,10 @@ EmoteModule.prototype.injectEmote = function(node) {
|
||||||
words.some(function(word) {
|
words.some(function(word) {
|
||||||
|
|
||||||
if($.inArray(word, bemotes) != -1) return;
|
if($.inArray(word, bemotes) != -1) return;
|
||||||
|
|
||||||
|
if(word.length < 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(emotesTwitch.emotes.hasOwnProperty(word)) {
|
if(emotesTwitch.emotes.hasOwnProperty(word)) {
|
||||||
parentInnerHTML = parentInnerHTML.replace(word, "<img src=" + twitchEmoteUrlStart + emotesTwitch.emotes[word].image_id + twitchEmoteUrlEnd + " ><\/img>");
|
parentInnerHTML = parentInnerHTML.replace(word, "<img src=" + twitchEmoteUrlStart + emotesTwitch.emotes[word].image_id + twitchEmoteUrlEnd + " ><\/img>");
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue