From 6625782d7b0ad63891314e4b17fbaa718116a076 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 13 Jan 2023 15:18:53 +0100 Subject: [PATCH] execute function toString bugfix --- js/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/commands.js b/js/commands.js index 0ad6547..96f70e1 100644 --- a/js/commands.js +++ b/js/commands.js @@ -54,5 +54,5 @@ function cmd_exec(input) { if (chars.length > 0) return "Invalid input!"; // Execute input and return output - return (new Function(`return ${str}`))(); + return (new Function(`return ${str}`))().toString(); } \ No newline at end of file