diff --git a/electron/main/index.ts b/electron/main/index.ts
index f56199e..2b9c2b5 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -137,6 +137,7 @@ async function createWindow(projectPath?: string) {
trafficLightPosition: { x: 10, y: 10 },
webPreferences: {
preload,
+ webSecurity: false,
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
// Consider using contextBridge.exposeInMainWorld
// Read more on https://www.electronjs.org/docs/latest/tutorial/context-isolation
diff --git a/index.html b/index.html
index 33d5999..5fca809 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
-
+
Behavior3 Editor
diff --git a/src/misc/b3util.ts b/src/misc/b3util.ts
index 614fa02..a6671ac 100644
--- a/src/misc/b3util.ts
+++ b/src/misc/b3util.ts
@@ -267,11 +267,13 @@ export const checkNodeArg = (
const arg = conf.args![i] as NodeArg;
const value = data.args?.[arg.name];
if (isNodeArgArray(arg)) {
- if (!Array.isArray(value) || (!isNodeArgOptional(arg) && value.length === 0)) {
- if (verbose) {
- error(data, `'${arg.name}=${JSON.stringify(value)}' is not an array or empty array`);
+ if (!Array.isArray(value) || value.length === 0) {
+ if (!isNodeArgOptional(arg)) {
+ if (verbose) {
+ error(data, `'${arg.name}=${JSON.stringify(value)}' is not an array or empty array`);
+ }
+ hasError = true;
}
- hasError = true;
} else {
for (let j = 0; j < value.length; j++) {
if (!checkNodeArgValue(data, arg, value[j], verbose)) {