Fix a bunch of scripting related stuff.

This commit is contained in:
Olivier Gagnon
2021-11-25 11:47:31 -05:00
parent 8ad7ca5136
commit f0a004e75b
18 changed files with 337 additions and 6 deletions
+2 -2
View File
@@ -651,8 +651,8 @@ export function runScriptFromScript(
}
args.forEach((arg) => {
if (typeof arg !== "string" && typeof arg !== "number")
throw new Error("Only strings and numbers can be passed as arguments to otherscripts.");
if (typeof arg !== "string" && typeof arg !== "number" && typeof arg !== "boolean")
throw new Error("Only strings, numbers, and booleans can be passed as arguments to otherscripts.");
});
// Check if the script is already running