Make print settings optional.
This commit is contained in:
parent
d20ec6952a
commit
17c0888932
1 changed files with 2 additions and 3 deletions
|
@ -34,9 +34,8 @@ struct Converter<PrintSettings> {
|
|||
mate::Dictionary dict;
|
||||
if (!ConvertFromV8(isolate, val, &dict))
|
||||
return false;
|
||||
if (!dict.Get("silent", &(out->silent)) ||
|
||||
!dict.Get("printBackground", &(out->print_backgournd)))
|
||||
return false;
|
||||
dict.Get("silent", &(out->silent));
|
||||
dict.Get("printBackground", &(out->print_backgournd));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue