import { App } from './app'; const app = new App(document.getElementById('app') as HTMLElement); // Debug/scripting hook (used by the automated visual tests). (window as unknown as { __app: App }).__app = app; app.start().catch((err: Error) => { console.error(err); const el = document.createElement('div'); el.className = 'fatal'; el.textContent = `Failed to start the renderer: ${err.message}. ` + 'This app needs WebGPU or WebGL2 — try a recent Chrome, Edge or Firefox.'; document.body.appendChild(el); });