Edit injection

This commit is contained in:
Jiiks 2015-10-29 15:46:08 +02:00
parent 9c87dd0979
commit 19b31e2a3d
1 changed files with 10 additions and 0 deletions

View File

@ -183,6 +183,16 @@ EmoteModule.prototype.init = function() {};
EmoteModule.prototype.obsCallback = function(mutation) {
var self = this;
//Edit injection
if(mutation.addedNodes.length == 1) {
var n = mutation.addedNodes[0];
if(n.parentNode.tagName == "SPAN") {
//Should be edit
self.injectEmote(n);
}
}
for(var i = 0 ; i < mutation.addedNodes.length ; ++i) {
var next = mutation.addedNodes.item(i);
if(next) {