test
This commit is contained in:
parent
d4e12a6ce3
commit
69d85fe54a
10
js/main.js
10
js/main.js
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue