Skip to content

Commit

Permalink
Merge pull request #417 from KevinGossentCap/master
Browse files Browse the repository at this point in the history
other puppeteer proxy handling
  • Loading branch information
Adam Rutland authored Nov 25, 2021
2 parents 2b4326c + 13b8723 commit 113be32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/utilityservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -1508,11 +1508,11 @@ UtilityService.prototype.moveFolders = async function (source, target) {
UtilityService.prototype.getPuppeteerOptions = async function (jobInfo) {
let puppeteerOptions = {
headless: jobInfo.puppeteerHeadless,
args: [
'--no-sandbox',
`--proxy-server=${jobInfo.httpProxy ? jobInfo.httpProxy : ''}`
]
args: ['--no-sandbox']
};
if (jobInfo.httpProxy) {
puppeteerOptions.args.push('--proxy-server=' + jobInfo.httpProxy);
}

let macChrome = path.join('/', 'Applications', 'Google Chrome.app', 'Contents', 'MacOS', 'Google Chrome');
let winChrome = path.join('/', 'Program Files', 'Google', 'Chrome', 'Application', 'chrome.exe');
Expand Down

0 comments on commit 113be32

Please sign in to comment.