less prototype, less bad code implementation of CCHM type theory
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
330 B

  1. import * as rts from "./rts.mjs";
  2. import module from "./cubical.wasm.mjs";
  3. import req from "./cubical.req.mjs";
  4. document.addEventListener('DOMContentLoaded', async () => {
  5. window.cubical = await module.then(m => rts.newAsteriusInstance(Object.assign(req, {module: m})))
  6. document.dispatchEvent(new Event('cubicalLoaded'));
  7. });