Skip to content

Commit

Permalink
Update robotjs.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
oktapodia authored Nov 22, 2019
1 parent 5fb3c7e commit 391f3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ NAN_METHOD(mouseClick)

if (info.Length() == 2)
{
doubleC = info[1]->BooleanValue(Nan::GetCurrentContext()).FromJust();
doubleC = Nan::To<bool>(info[1]).FromJust();
}
else if (info.Length() > 2)
{
Expand Down

0 comments on commit 391f3fe

Please sign in to comment.