WebMidi.supported returns non boolean
SteveALee opened this issue · comments
Steve Lee commented
get supported() {
return (typeof navigator !== "undefined" && navigator.requestMIDIAccess);
}
returns navigator.requestMIDIAccess
code should be something like
get supported() {
return (typeof navigator !== "undefined" && !!navigator.requestMIDIAccess);
}
Jean-Philippe Côté commented
Thanks for reporting. Fixed in 8d42de2 (available in release 3.1.9).