This commit is contained in:
Jiiks 2015-10-14 09:36:39 +03:00
parent bcbcd74dc8
commit dbbe98b8f0
1 changed files with 5 additions and 1 deletions

View File

@ -199,7 +199,7 @@ EmoteModule.prototype.injectEmote = function(node) {
if(!words) return;
words.some(function(word) {
console.log(word);
if (emotesTwitch.hasOwnProperty(word)) {
parentInnerHTML = parentInnerHTML.replace(word, "<img src=" + twitchEmoteUrlStart + emotesTwitch[word] + twitchEmoteUrlEnd + "><\/img>");
} else if(typeof emotesFfz !== 'undefined' && settingsCookie["bda-es-1"]) {
@ -213,7 +213,11 @@ EmoteModule.prototype.injectEmote = function(node) {
}
});
var oldHeight = parent.parent().height();
parent.innerHTML = parentInnerHTML;
var newHeight = parent.parent().height();
console.log("heightdiff: " + newHeight - oldHeight);
}
EmoteModule.prototype.autoCapitalize = function() {