MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / ensureDOMParser

Function ensureDOMParser

packages/cli/src/utils/dom.ts:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 * Safe to call multiple times — only sets the global once.
6 */
7export function ensureDOMParser(): void {
8 if (typeof globalThis.DOMParser === "undefined") {
9 (globalThis as Record<string, unknown>).DOMParser = DOMParser;
10 }
11}

Callers 8

runFunction · 0.85
runFunction · 0.85
keyframes.test.tsFile · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected