fix(core): update
This commit is contained in:
@ -27,7 +27,14 @@ export const getEnvAwareBrowserInstance = async (
|
||||
args: chromeArgs,
|
||||
pipe: true,
|
||||
headless: true,
|
||||
// executablePath: '/usr/bin/google-chrome'
|
||||
...(() => {
|
||||
const returnObject: any = {};
|
||||
const googleChrome = plugins.smartshell.which.sync('google-chrome')
|
||||
if(googleChrome) {
|
||||
returnObject.executablePath = googleChrome
|
||||
}
|
||||
return returnObject;
|
||||
})()
|
||||
});
|
||||
|
||||
return headlessBrowser;
|
||||
|
@ -6,8 +6,9 @@ export { os };
|
||||
// @pushrocks scope
|
||||
import * as smartdelay from '@pushrocks/smartdelay';
|
||||
import * as smartenv from '@pushrocks/smartenv';
|
||||
import * as smartshell from '@pushrocks/smartshell';
|
||||
|
||||
export { smartdelay, smartenv };
|
||||
export { smartdelay, smartenv, smartshell };
|
||||
|
||||
// third party scope
|
||||
import puppeteer from 'puppeteer';
|
||||
|
Reference in New Issue
Block a user