提交 625c330e 编写于 作者: B Benjamin Pasero

fix startup

上级 4cc83a75
......@@ -110,7 +110,9 @@ export function parseArgs(args: string[]): ParsedArgs {
// Because Spectron doesn't allow us to pass a custom user-data-dir,
// Code receives two of them. Let's just take the first one.
const userDataDir: string | string[] = result['user-data-dir'];
result['user-data-dir'] = typeof userDataDir === 'string' ? userDataDir : userDataDir[0];
if (userDataDir) {
result['user-data-dir'] = typeof userDataDir === 'string' ? userDataDir : userDataDir[0];
}
return result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册