Fix a type error in checking function options.
This commit is contained in:
parent
36fa4da252
commit
10da361db1
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ void Window::Print(mate::Arguments* args) {
|
|||
void Window::PrintToPDF(mate::Arguments* args) {
|
||||
mate::Dictionary options;
|
||||
base::Callback<void(int)> callback;
|
||||
if (!(args->Length() == 1 && !args->GetNext(&callback)) &&
|
||||
if (!(args->Length() == 1 && args->GetNext(&callback)) &&
|
||||
!(args->Length() == 2 && args->GetNext(&options)
|
||||
&& args->GetNext(&callback))) {
|
||||
args->ThrowError();
|
||||
|
|
Loading…
Reference in a new issue