Skip to content

Commit

Permalink
Update robotjs.cc
Browse files Browse the repository at this point in the history
Fix conversion issue
  • Loading branch information
Th3S4mur41 committed Dec 3, 2019
1 parent 4537a05 commit 7696d7f
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 @@ -598,7 +598,7 @@ NAN_METHOD(keyToggle)

NAN_METHOD(unicodeTap)
{
size_t value = info[0]->Int32Value(Nan::GetCurrentContext());
size_t value = info[0]->Int32Value(Nan::GetCurrentContext()).FromJust();

if (value != 0) {
unicodeTap(value);
Expand Down

0 comments on commit 7696d7f

Please sign in to comment.