Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bbloomf committed Dec 22, 2023
1 parent 813365e commit bd0409b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/audioplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ $(function(){
player.loadFile(url, player.start);
playUrl = url;
}
MIDI.loadPlugin(function(){
MIDI.loadPlugin(function(a){
playMIDI = _playMIDI;
midiLoaded = true;
if(playUrl) playMIDI(playUrl);
if(MIDI.loader) MIDI.loader.stop();
MIDIPlayerPercentage(MIDI.Player);
});
var playMIDI = function(url) {
if(!MIDI.loader) MIDI.loader = new widgets.Loader;
playUrl = url;
};
$('a.play').click(function(e){
Expand Down

0 comments on commit bd0409b

Please sign in to comment.