This commit is contained in:
Simon Gardling
2022-02-10 17:44:29 -05:00
commit 1bd2f919a8
12 changed files with 1085 additions and 0 deletions

20
www/bootstrap.js vendored Normal file
View File

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