Skip to content

Commit

Permalink
Bump xmldom and eslint (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
varney authored Feb 23, 2022
1 parent 2b366c5 commit 4fa1716
Show file tree
Hide file tree
Showing 3 changed files with 253 additions and 370 deletions.
7 changes: 5 additions & 2 deletions lib/windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,14 @@ function send(url, cb) {
function removeWhiteSpace(node) {
var rootNode = node;
while (node) {
const nextSibling = node.nextSibling;
if (!node.tagName && (node.nextSibling || node.previousSibling)) {
node.parentNode.removeChild(node);
}
removeWhiteSpace(node.firstChild);
node = node.nextSibling;
if (node.firstChild) {
removeWhiteSpace(node.firstChild);
}
node = nextSibling;
}
return rootNode;
}
Expand Down
Loading

0 comments on commit 4fa1716

Please sign in to comment.