allow configering the root name in the desktop renderer

This commit is contained in:
Evan Almloff committed 2022-12-18 22:28:40 -06:00
1 parent a42660a451
commit f84166fb11
4 files changed
+27 -9

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
export function main() {
let root = window.document.getElementById("main");
export function main(rootname = "main") {
let root = window.document.getElementById(rootname);
if (root != null) {
window.interpreter = new Interpreter(root);
window.ipc.postMessage(serializeIpcMessage("initialize"));