Skip to content

Commit

Permalink
fix(bot): print puppeteer launch options
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHirn committed Sep 24, 2020
1 parent 8bf050b commit 1124d18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bots/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,13 @@ export class Bot {

// LAUNCH BROWSER
console.log(`LAUNCH BROWSER: ${userDataDir}`)
const browser = await puppeteer.launch({
const launchOptions = {
...browserConfig.puppeteerParams,
...browserConfig,
...{ userDataDir }
})
return browser
}
console.log(`LAUNCH OPTIONS: ${JSON.stringify(launchOptions, null, 2)}`)
return await puppeteer.launch(launchOptions)
}

/**
Expand Down

0 comments on commit 1124d18

Please sign in to comment.