MCPcopy
hub / github.com/Bistutu/FluentRead / skipNode

Function skipNode

entrypoints/utils/check.ts:51–53  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

49
50// Check if the node needs to be translated
51export function skipNode(node: Node): boolean {
52 return !node || !node.textContent?.trim() || hasLoadingSpinner(node) || hasRetryTag(node);
53}
54
55// Check if the node or any of its children contains a loading spinner
56export function hasLoadingSpinner(node: Node): boolean {

Callers 1

handleTranslationFunction · 0.90

Calls 2

hasRetryTagFunction · 0.85
hasLoadingSpinnerFunction · 0.70

Tested by

no test coverage detected