This commit is contained in:
Jiiks 2015-10-29 16:51:21 +02:00
parent d4e12a6ce3
commit 69d85fe54a
1 changed files with 10 additions and 0 deletions

View File

@ -210,6 +210,16 @@ EmoteModule.prototype.getNodes = function(node) {
console.log("NEXT: " + next);
nodes.push(next);
}
if(nodes.length < 1) {
treeWalker = document.createTreeWalker(node.parentElement, NodeFilter.SHOW_TEXT);
while(next = treeWalker.nextNode()) {
console.log("PACCEPTED: " + next);
console.log(next);
nodes.push(next);
}
}
console.log("<=GETNODES");
return nodes;
};