fix(core): update

This commit is contained in:
2021-11-07 19:51:50 +01:00
parent b2efe28f4d
commit a10b42270c
3 changed files with 127 additions and 8 deletions

View File

@ -29,12 +29,12 @@ export const getEnvAwareBrowserInstance = async (
headless: true,
...(() => {
const returnObject: any = {};
const googleChrome = plugins.smartshell.which.sync('google-chrome')
if(googleChrome) {
returnObject.executablePath = googleChrome
}
const googleChrome = plugins.smartshell.which.sync('google-chrome');
if (googleChrome) {
returnObject.executablePath = googleChrome;
}
return returnObject;
})()
})(),
});
return headlessBrowser;