Skip to content

Commit

Permalink
Fixed web-midi test for Node 22
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed May 12, 2024
1 parent bd48c28 commit 698cd58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/engine3.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ global.performance = { now: function() { return Date.now() - _startTime; } };

var WMT = require('web-midi-test');
WMT.sysex = false;
global.navigator = WMT;
if (navigator) { // node 22 has a navigator object
navigator.requestMIDIAccess = WMT.requestMIDIAccess;
}
else global.navigator = WMT;

var JZZ = require('..');

Expand Down

0 comments on commit 698cd58

Please sign in to comment.