Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Philippe Côté committed Nov 23, 2023
1 parent b5f2e52 commit d63f42e
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/WebMidi.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,35 +284,6 @@ class WebMidi extends EventEmitter {
return Promise.resolve();
}

// The Jazz-Plugin takes a while to be available (even after the Window's 'load' event has been
// fired). Therefore, we wait a little while to give it time to finish loading (initiqted in
// constructor).
// if (!this.supported) {
//
// await new Promise((resolve, reject) => {
//
// const start = this.time;
//
// const intervalID = setInterval(() => {
//
// if (this.supported) {
// clearInterval(intervalID);
// resolve();
// } else {
// if (this.time > start + 1500) {
// clearInterval(intervalID);
// let error = new Error("The Web MIDI API is not available in your environment.");
// if (typeof options.callback === "function") options.callback(error);
// reject(error);
// }
// }
//
// }, 25);
//
// });
//
// }

/**
* Event emitted when an error occurs trying to enable `WebMidi`
*
Expand Down

0 comments on commit d63f42e

Please sign in to comment.