Skip to content

Commit

Permalink
feat: add the option to ignore chrome prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
agentran committed Apr 15, 2024
1 parent 79a267c commit 8f38188
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/server/lib/browsers/chrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ let browserCriClient: BrowserCriClient | undefined
* @param userDir
*/
const _getChromePreferences = (userDir: string): Bluebird<ChromePreferences> => {
if (process.env.IGNORE_CHROME_PREFERENCES) {
debug('ignoring chrome preferences...')

return Bluebird.resolve(_.mapValues(CHROME_PREFERENCE_PATHS, () => ({})))
}

debug('reading chrome preferences... %o', { userDir, CHROME_PREFERENCE_PATHS })

return Bluebird.props(_.mapValues(CHROME_PREFERENCE_PATHS, (prefPath) => {
Expand Down

0 comments on commit 8f38188

Please sign in to comment.