mirror of
https://github.com/vladocar/screenshoteer.git
synced 2024-12-22 05:32:21 +01:00
Merge pull request #10 from GianlucaCesari/master
fix(pr): fixed "messy" if statement
This commit is contained in:
commit
a0e425353a
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
|
||||
else process.exit(console.log("Please add --url parameter. Something like this: $ screenshoteer --url http:www.example.com"));
|
||||
|
||||
|
||||
if (program.fullpage && program.fullpage == "true") fullPage = true
|
||||
if (program.fullpage && program.fullpage == "false") fullPage = false
|
||||
else fullPage = true;
|
||||
!program.fullpage ? fullPage = true : fullPage = JSON.parse(program.fullpage);
|
||||
|
||||
console.log(urlvalue);
|
||||
console.log(fullPage);
|
||||
|
|
Loading…
Reference in a new issue