From 0cd6f412582fdab73e23300a017f0325aa445f2c Mon Sep 17 00:00:00 2001 From: Michael Deal Date: Fri, 25 Jan 2013 21:59:30 -0800 Subject: [PATCH] fix the ability to select a specific technology (for debugging) by setting the hash tag: #webmidi, #webaudio, #audiotag, or #flash --- js/MIDI/LoadPlugin.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/js/MIDI/LoadPlugin.js b/js/MIDI/LoadPlugin.js index 88ee7de..f0afc1e 100644 --- a/js/MIDI/LoadPlugin.js +++ b/js/MIDI/LoadPlugin.js @@ -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";