diff --git a/js/midi/audioDetect.js b/js/midi/audioDetect.js index 957605da..680142f3 100644 --- a/js/midi/audioDetect.js +++ b/js/midi/audioDetect.js @@ -38,19 +38,9 @@ if (typeof MIDI === 'undefined') MIDI = {}; }; root.audioDetect = function(onsuccess) { - /// detect jazz-midi plugin + /// detect WebMIDI support, native or by jazz-midi plugin if (navigator.requestMIDIAccess) { - var isNative = Function.prototype.toString.call(navigator.requestMIDIAccess).indexOf('[native code]'); - if (isNative) { // has native midiapi support - supports['webmidi'] = true; - } else { // check for jazz plugin midiapi support - for (var n = 0; navigator.plugins.length > n; n ++) { - var plugin = navigator.plugins[n]; - if (plugin.name.indexOf('Jazz-Plugin') >= 0) { - supports['webmidi'] = true; - } - } - } + supports['webmidi'] = true; } /// check whether