Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimarinho committed Feb 1, 2021
1 parent 43f5ab5 commit be556b9
Show file tree
Hide file tree
Showing 3 changed files with 3,770 additions and 3,686 deletions.
7 changes: 0 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ async function formatOutput(awsSharedCredentialsFile, awsProfile, format = null)
defaultViewport: device.viewport,
executablePath: argv.puppeteerExecutablePath,
headless: !argv.headful,
ignoreDefaultArgs: ['--enable-automation'],
userDataDir: paths.data
};

Expand Down Expand Up @@ -329,12 +328,6 @@ async function formatOutput(awsSharedCredentialsFile, awsProfile, format = null)
});

page.on('requestfailed', async request => {
// The request to the AWS console is aborted on successful login for performance reasons,
// so in this particular case it's actually an expected outcome.
if (request.url().startsWith('https://console.aws.amazon.com/console/home?state')) {
return;
}

logger.debug(`Request to "${request.url()}" has been aborted`);
await browser.close();
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"ora": "^4.0.3",
"plist": "^3.0.1",
"prompts": "^2.3.2",
"puppeteer": "^2.1.1",
"puppeteer": "^5.5.0",
"puppeteer-extra": "^3.1.9",
"puppeteer-extra-plugin-stealth": "^2.4.9",
"trash": "^6.1.1",
Expand Down
Loading

0 comments on commit be556b9

Please sign in to comment.