This commit is contained in:
Atef Ben Ali 2018-12-10 07:24:00 +01:00 committed by GitHub
parent f7f179c0b6
commit 841069b52c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,6 @@ console.log(program.url);
console.log(program.fullPage);
(async () => {
try {
await execute();
} catch(e) {
@ -50,6 +49,7 @@ console.log(program.fullPage);
await page.emulate(devices[program.emulate]);
else
program.emulate = '';
if (program.auth) {
const [username, password] = program.auth.split(';');
await page.authenticate({ username, password });
@ -68,5 +68,4 @@ console.log(program.fullPage);
console.log(title);
await browser.close();
}
})()