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