fix the ability to select a specific technology (for debugging) by setting the hash tag: #webmidi, #webaudio, #audiotag, or #flash

This commit is contained in:
Michael Deal 2013-01-25 21:59:30 -08:00
parent ffdb8fc93a
commit 0cd6f41258

View file

@ -34,13 +34,10 @@ MIDI.loadPlugin = function(conf) {
MIDI.audioDetect(function(types) {
var type = "";
// use the most appropriate plugin if not specified
if (typeof(type) === 'undefined') {
if (plugins[window.location.hash]) {
type = window.location.hash.substr(1);
} else { //
type = "";
}
if (plugins[window.location.hash]) {
type = window.location.hash.substr(1);
}
///
if (type === "") {
if (navigator.requestMIDIAccess) {
type = "webmidi";