mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-19 06:35:54 +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…
x
Reference in New Issue
Block a user