allow configering the root name in the desktop renderer
This commit is contained in:
1 parent
a42660a451
commit
f84166fb11
4 files changed
+27
-9
No files matched your search
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user