etc/browser-demo/src/index.js
async function main() {
  const { window } = webContext();
  if (window) {
    await windowReadiness(window);
    render(window);
    bootWebWorker(window);
  } else {
    console.warn("No web window. Can't run browser-demo.");
  }
}
async function main() {
  const { window } = webContext();
  if (window) {
    await windowReadiness(window);
    render(window);
    bootWebWorker(window);
  } else {
    console.warn("No web window. Can't run browser-demo.");
  }
}
async function main ( ) { const { window } = webContext ( ) ; if ( window ) { await windowReadiness ( window ) ; render ( window ) ; bootWebWorker ( window ) ; } else { console . warn ( "No web window. Can't run browser-demo." ) ; } }
Main browser-demo.
Render a message and boot the web worker.
Main browser - demo . Render a message and boot the web worker .