Simon Gardling dd6d30ef37 cache works!
2022-02-14 10:58:33 -05:00

21 lines
531 B
JavaScript

init();
async function init() {
if (typeof process == "object") {
const [{ChartManager}, {main, setup}] = await Promise.all([
import("integral_site"),
import("./index.js"),
]);
setup(ChartManager);
main();
} else {
const [{ChartManager, default: init}, {main, setup}] = await Promise.all([
import("../pkg/integral_site.js"),
import("./index.js"),
]);
await init();
setup(ChartManager);
main();
}
}