diff --git a/apps/api/app.js b/apps/api/app.js index 533febec..275d289d 100644 --- a/apps/api/app.js +++ b/apps/api/app.js @@ -1,4 +1,3 @@ -var global = Function('return this')(); function treeify(o) { if (typeof(o) == 'object') { return Object.fromEntries(Object.keys(o).map(x => [x, treeify(o[x])])); @@ -8,4 +7,4 @@ function treeify(o) { return o; } } -app.setDocument(`
${JSON.stringify(treeify(global), null, 2)}`);
\ No newline at end of file
+app.setDocument(`${JSON.stringify(treeify(globalThis), null, 2)}`);
\ No newline at end of file
diff --git a/apps/apps/app.js b/apps/apps/app.js
index e820e56d..d2a19c6e 100644
--- a/apps/apps/app.js
+++ b/apps/apps/app.js
@@ -70,7 +70,7 @@ async function main() {
populate_apps('apps', '${core.user.credentials?.session?.name}', ${JSON.stringify(apps)});
populate_apps('core_apps', 'core', ${JSON.stringify(core_apps)});
-