change : to ;

This commit is contained in:
Vladimir Carrer 2018-12-06 12:39:27 +01:00 committed by GitHub
parent 1996ff0dff
commit 782268e4e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ console.log(fullPage);
if (program.w && program.h) await page.setViewport({width: Number(program.w), height: Number(program.h)}) if (program.w && program.h) await page.setViewport({width: Number(program.w), height: Number(program.h)})
if (program.emulate) await page.emulate(devices[program.emulate]); if (program.emulate) await page.emulate(devices[program.emulate]);
if (program.auth) { if (program.auth) {
const [username, password] = program.auth.split(':'); const [username, password] = program.auth.split(';');
await page.authenticate({username:username, password:password}); await page.authenticate({username:username, password:password});
} }
await page.goto(urlvalue) await page.goto(urlvalue)