fix(core): update
This commit is contained in:
@ -5,5 +5,3 @@ export * from './smartpuppeteer.classes.smartpuppeteer';
|
||||
// direct exports
|
||||
import { puppeteer } from './smartpuppeteer.plugins';
|
||||
export { puppeteer };
|
||||
|
||||
|
||||
|
@ -32,7 +32,9 @@ export const getEnvAwareBrowserInstance = async (
|
||||
});
|
||||
} else {
|
||||
console.log('Detected WSL. Using chromium.');
|
||||
headlessBrowser = await plugins.puppeteer.launch({executablePath: '/usr/bin/chromium-browser'});
|
||||
headlessBrowser = await plugins.puppeteer.launch({
|
||||
executablePath: '/usr/bin/chromium-browser'
|
||||
});
|
||||
}
|
||||
|
||||
return headlessBrowser;
|
||||
|
@ -1,13 +1,9 @@
|
||||
// @pushrocks scope
|
||||
import * as smartenv from '@pushrocks/smartenv';
|
||||
|
||||
export {
|
||||
smartenv
|
||||
};
|
||||
export { smartenv };
|
||||
|
||||
// third party scope
|
||||
import puppeteer from 'puppeteer';
|
||||
|
||||
export {
|
||||
puppeteer
|
||||
}
|
||||
export { puppeteer };
|
||||
|
Reference in New Issue
Block a user