mirror of
https://github.com/intergalacticalvariable/reader.git
synced 2024-11-16 11:42:32 +08:00
fix
This commit is contained in:
parent
6fb5df97cc
commit
d0a922144d
|
@ -126,7 +126,7 @@ function getMaxDepthAndCountUsingTreeWalker(root) {
|
|||
const treeWalker = document.createTreeWalker(
|
||||
root,
|
||||
NodeFilter.SHOW_ELEMENT,
|
||||
(node) => (node.nodeName.toLowerCase() === 'svg') ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT,
|
||||
(node) => (node.nodeName.toLowerCase() === 'svg' || node.nodeName.toLowerCase() === 'code') ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT,
|
||||
false
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user