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

Function setDeclared

packages/core/src/runtime/getVariables.test.ts:9–15  ·  view source on GitHub ↗
(json: string | null)

Source from the content-addressed store, hash-verified

7const VARIABLES_ATTR = "data-composition-variables";
8
9function setDeclared(json: string | null) {
10 if (json == null) {
11 document.documentElement.removeAttribute(VARIABLES_ATTR);
12 } else {
13 document.documentElement.setAttribute(VARIABLES_ATTR, json);
14 }
15}
16
17function setOverrides(value: unknown) {
18 (window as Window & { __hfVariables?: unknown }).__hfVariables = value;

Callers 1

Calls 1

setAttributeMethod · 0.65

Tested by

no test coverage detected