From 3b4c00fe2402d06c80e57f0b861fc84d057bb888 Mon Sep 17 00:00:00 2001 From: seattleowl <32573897+seattleowl@users.noreply.github.com> Date: Wed, 23 Dec 2020 15:32:17 -0800 Subject: [PATCH] ... --- src/defaultModules/web.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/defaultModules/web.js b/src/defaultModules/web.js index a6863c1..d8c45c0 100644 --- a/src/defaultModules/web.js +++ b/src/defaultModules/web.js @@ -41,7 +41,6 @@ class HTMLElementScope extends Scope { el.innerText += text; } }); - this.localFunctions.set("self", { type: "js", run(text) { @@ -66,9 +65,9 @@ export function getConsoleEl() { return consoleEl; } -if (isWeb) { - const scope = new Scope(); +const scope = new Scope(); +if (isWeb) { scope.localFunctions.set("useElementAsConsole", { type: "js", run(id) {