fix(cli logs): now correctly stating when WSL is detected.

This commit is contained in:
Philipp Kunz 2019-11-16 17:51:11 +01:00
parent 42a68434c0
commit 8d4519d615

View File

@ -19,7 +19,7 @@ export const getEnvAwareBrowserInstance = async (
if ((process.env.CI || options.forceNoSandbox) && !smartenv.isWsl) {
chromeArgs = chromeArgs.concat(['--no-sandbox', '--disable-setuid-sandbox']);
} else if (smartenv.isWsl) {
console.log('Detected WSL. Using chromium.');
console.log('Detected WSL.');
chromeArgs = chromeArgs.concat(['--no-sandbox', '--single-process']);
}