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;
|
mate::Dictionary dict;
|
||||||
if (!ConvertFromV8(isolate, val, &dict))
|
if (!ConvertFromV8(isolate, val, &dict))
|
||||||
return false;
|
return false;
|
||||||
if (!dict.Get("silent", &(out->silent)) ||
|
dict.Get("silent", &(out->silent));
|
||||||
!dict.Get("printBackground", &(out->print_backgournd)))
|
dict.Get("printBackground", &(out->print_backgournd));
|
||||||
return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue