mirror of
https://github.com/vladocar/screenshoteer.git
synced 2024-12-22 13:42:19 +01:00
fix(pr): fixed "messy" if statement
This commit is contained in:
parent
b0c19402fa
commit
20a071e603
1 changed files with 1 additions and 4 deletions
5
index.js
5
index.js
|
@ -20,10 +20,7 @@ program
|
||||||
if (program.url) urlvalue = program.url
|
if (program.url) urlvalue = program.url
|
||||||
else process.exit(console.log("Please add --url parameter. Something like this: $ screenshoteer --url http:www.example.com"));
|
else process.exit(console.log("Please add --url parameter. Something like this: $ screenshoteer --url http:www.example.com"));
|
||||||
|
|
||||||
|
!program.fullpage ? fullPage = true : fullPage = JSON.parse(program.fullpage);
|
||||||
if (program.fullpage && program.fullpage == "true") fullPage = true
|
|
||||||
if (program.fullpage && program.fullpage == "false") fullPage = false
|
|
||||||
else fullPage = true;
|
|
||||||
|
|
||||||
console.log(urlvalue);
|
console.log(urlvalue);
|
||||||
console.log(fullPage);
|
console.log(fullPage);
|
||||||
|
|
Loading…
Reference in a new issue