demos/epcp/browser-webworkers-demo/src/index.js
/**
 * Main browser-demo.
 * Render a message and boot the web worker.
 */
Main browser-demo.
Render a message and boot the web worker.
Main browser - demo . Render a message and boot the web worker .
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.
Main browser - demo .