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

master
Michael Deal 2013-01-25 21:59:30 -08:00
parent ffdb8fc93a
commit 0cd6f41258
1 changed files with 3 additions and 6 deletions

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";