diff --git a/index.js b/index.js index f9c2ce8..5ac0c2e 100644 --- a/index.js +++ b/index.js @@ -1,13 +1,13 @@ const defiant = { - init: async () => { + init: async (puppeteerOpts) => { const puppeteer = require('puppeteer') const fs = require('fs') const script = fs.readFileSync(__dirname +'/dist/defiant.min.js', 'utf8') return new Promise((resolve, reject) => { puppeteer - .launch() + .launch(puppeteerOpts) .then(async browser => { const page = await browser.newPage() page.on('console', msg => console.log(msg.text()))