diff --git a/package.json b/package.json index 0ae8cc8..f7d173e 100644 --- a/package.json +++ b/package.json @@ -37,4 +37,4 @@ "npmextra.json", "readme.md" ] -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index eaa7ce4..17f9377 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/test/test.ts b/test/test.ts index e76b492..2caecd1 100644 --- a/test/test.ts +++ b/test/test.ts @@ -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 }); diff --git a/ts/smartpuppeteer.classes.smartpuppeteer.ts b/ts/smartpuppeteer.classes.smartpuppeteer.ts index 9acd4bc..2697b8a 100644 --- a/ts/smartpuppeteer.classes.smartpuppeteer.ts +++ b/ts/smartpuppeteer.classes.smartpuppeteer.ts @@ -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;