update BN13 for new UI

This commit is contained in:
Olivier Gagnon
2021-09-25 17:21:50 -04:00
parent 3aacab504b
commit 793d9b34ce
49 changed files with 1763 additions and 9 deletions
+1
View File
@@ -114,6 +114,7 @@ function startNetscript2Script(workerScript: WorkerScript): Promise<WorkerScript
if (typeof workerScript.env.vars[prop] !== "function") continue;
workerScript.env.vars[prop] = wrap(prop, workerScript.env.vars[prop]);
}
workerScript.env.vars.stanek.charge = wrap("stanek.prop", workerScript.env.vars.stanek.charge);
// Note: the environment that we pass to the JS script only needs to contain the functions visible
// to that script, which env.vars does at this point.