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) {