Fix the capturePage method.
This commit is contained in:
parent
f6cca0df48
commit
babfbe40d2
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ void Window::CapturePage(mate::Arguments* args) {
|
|||
gfx::Rect rect;
|
||||
base::Callback<void(v8::Handle<v8::Value>)> callback;
|
||||
|
||||
if (!(args->Length() == 1 && args->GetNext(&callback)) ||
|
||||
if (!(args->Length() == 1 && args->GetNext(&callback)) &&
|
||||
!(args->Length() == 2 && args->GetNext(&rect)
|
||||
&& args->GetNext(&callback))) {
|
||||
args->ThrowError();
|
||||
|
|
Loading…
Reference in a new issue