fix(core): update

This commit is contained in:
Philipp Kunz 2019-11-16 01:15:08 +01:00
parent 656e21c8fd
commit fbb94fe51e
4 changed files with 4 additions and 10 deletions

View File

@ -37,4 +37,4 @@
"npmextra.json",
"readme.md"
]
}
}

View File

@ -18,10 +18,7 @@ simplified access to puppeteer
## Usage
## Contribution
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
Use TypeScript for best in class intellisense.
## Contribution

View File

@ -1,7 +1,7 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartpuppeteer from '../ts/index';
tap.test('first test', async (tools) => {
tap.test('first test', async tools => {
const headlessBrowser = await smartpuppeteer.getEnvAwareBrowserInstance({
forceNoSandbox: true
});

View File

@ -20,10 +20,7 @@ export const getEnvAwareBrowserInstance = async (
chromeArgs = chromeArgs.concat(['--no-sandbox', '--disable-setuid-sandbox']);
} else if (smartenv.isWsl) {
console.log('Detected WSL. Using chromium.');
chromeArgs = chromeArgs.concat([
'--no-sandbox',
'--single-process'
]);
chromeArgs = chromeArgs.concat(['--no-sandbox', '--single-process']);
}
let headlessBrowser: plugins.puppeteer.Browser;