From 69d85fe54a3724221833c207048455cd879797b4 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Thu, 29 Oct 2015 16:51:21 +0200 Subject: [PATCH] test --- js/main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/main.js b/js/main.js index 7b4dcbfb..bf8bc91f 100644 --- a/js/main.js +++ b/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; };