mirror of
https://github.com/vladocar/screenshoteer.git
synced 2024-09-28 14:11:33 +02:00
commit
eb1dfc8f21
3
index.js
3
index.js
@ -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();
|
||||
}
|
||||
|
||||
})()
|
||||
|
Loading…
Reference in New Issue
Block a user