Skip to content

Commit

Permalink
src: make the module Context aware
Browse files Browse the repository at this point in the history
  • Loading branch information
santigimeno committed Dec 15, 2021
1 parent 9eef18e commit 64952fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ void init_all(Local<Object> target) {
CardReader::init(target);
}

#if NODE_MAJOR_VERSION >= 10
NAN_MODULE_WORKER_ENABLED(pcsclite, init_all)
#else
NODE_MODULE(pcsclite, init_all)
#endif

0 comments on commit 64952fb

Please sign in to comment.