Make print settings optional.

This commit is contained in:
Cheng Zhao 2014-08-22 15:05:30 +08:00
parent d20ec6952a
commit 17c0888932

View file

@ -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;
} }
}; };