From 518eb0bcbcb0f469dd07c1b3ed0f6eaf0f0d8346 Mon Sep 17 00:00:00 2001 From: Jongwook Choi Date: Wed, 10 Nov 2021 00:18:34 -0500 Subject: [PATCH] Make native module context-aware Electron 14.0+ requires the module to be context-aware to be importable. --- src/midi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/midi.cpp b/src/midi.cpp index d49fcc3..3dee53f 100644 --- a/src/midi.cpp +++ b/src/midi.cpp @@ -11,4 +11,4 @@ NAN_MODULE_INIT(InitAll) { NodeMidiInput::Init(target); } -NODE_MODULE(midi, InitAll) +NAN_MODULE_WORKER_ENABLED(midi, InitAll)