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

Function getStyleSheet

packages/sdk/src/engine/model.ts:289–291  ·  view source on GitHub ↗
(document: Document)

Source from the content-addressed store, hash-verified

287}
288
289export function getStyleSheet(document: Document): string {
290 return findStyleElement(document)?.textContent ?? "";
291}
292
293export function setStyleSheet(document: Document, css: string): void {
294 const existing = findStyleElement(document);

Callers 1

handleSetClassStyleFunction · 0.85

Calls 1

findStyleElementFunction · 0.85

Tested by

no test coverage detected