fix bug in fallback

This commit is contained in:
Michael Deal 2013-01-26 22:44:14 -08:00
parent 41f90e8bb1
commit d189452640
2 changed files with 10 additions and 10 deletions

View file

@ -38,7 +38,7 @@ MIDI.loadPlugin = function(conf) {
// use the most appropriate plugin if not specified
if (apis[conf.api]) {
api = conf.api;
} else if (apis[window.location.hash]) {
} else if (apis[window.location.hash.substr(1)]) {
api = window.location.hash.substr(1);
} else if (navigator.requestMIDIAccess) {
api = "webmidi";
@ -148,10 +148,10 @@ connect.webaudio = function(filetype, instruments, conf) {
/// Helpers
var apis = {
"#webmidi": true,
"#webaudio": true,
"#audiotag": true,
"#flash": true
"webmidi": true,
"webaudio": true,
"audiotag": true,
"flash": true
};
var getPercent = function(event) {