diff --git a/main/src/main.ts b/main/src/main.ts index 56ea0a963a..8f564e0954 100644 --- a/main/src/main.ts +++ b/main/src/main.ts @@ -13,7 +13,7 @@ import { moveToNextOniInstance } from "./WindowManager" global["getLogs"] = Log.getAllLogs // tslint:disable-line no-string-literal const processArgs = process.argv || [] -const isAutomation = processArgs.find(f => f.indexOf("--test-type=webdriver") >= 0) +const isAutomation = process.argv.filter(f => f.indexOf("--test-type=webdriver") >= 0).length > 0 const isDevelopment = process.env.NODE_ENV === "development" || process.env.ONI_WEBPACK_LOAD === "1" const isDebug = process.argv.filter(arg => arg.indexOf("--debug") >= 0).length > 0