So for some reason the package is useable now, but WebMidi is not enabled when running a page code through Wix. I think its because a lot of the navigator DOM web apis are not accessible on Wix. Is there a work around to this? To clarify with examples the WebMidi NPM package can be installed and the functions called in it, but never enabled.
WebMidi.enable(function (err)){…} would return with “WebMidi could not be enabled. Error: The Web MIDI API is not supported by your browsers”
Where as:
if (navigator.requestMIDIAccess) {
console.log('This browser supports WebMIDI!');} else {
console.log('WebMIDI is not supported in this browser.');}
return the second message error because on wix velo coding navigator object does not have requestMIDIAccess.
Any thoughts or work arounds?