fix queue append

This commit is contained in:
Lakshya Thakur
2020-11-09 01:08:21 +05:30
parent d01a7b1bf1
commit 95b21302e4
+1 -1
View File
@@ -237,7 +237,7 @@ while (queue.length > 0) {
const item = queue.shift();
console.log(item);
if (item.hasChildNodes()) {
queue.push(Array.from(item.childNodes));
queue = queue.concat([...item.childNodes]);
}
}