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

Function init

packages/sdk-playground/src/main.ts:1453–1458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1451// ── Init ──────────────────────────────────────────────────────────────────────
1452
1453async function init() {
1454 wireStaticControls();
1455 updatePreviewScale();
1456 const { initialHtml } = await createFileAdapter();
1457 await openEditor(initialHtml ?? DEMO_HTML, initialHtml ? "composition.html" : "demo");
1458}
1459
1460init().catch((err) => {
1461 document.body.innerHTML = `<pre style="color:#f87171;padding:20px">${String(err)}</pre>`;

Callers 1

main.tsFile · 0.70

Calls 4

wireStaticControlsFunction · 0.85
updatePreviewScaleFunction · 0.85
createFileAdapterFunction · 0.85
openEditorFunction · 0.85

Tested by

no test coverage detected