🐛 Update Midi API to latest Chrome support
access.outputs is no longer a method
This commit is contained in:
parent
ace2c5b212
commit
c7c47507d0
|
@ -131,11 +131,11 @@
|
|||
App.MIDI.output = new Output();
|
||||
|
||||
navigator.requestMIDIAccess().then(function (access) {
|
||||
var outputs = access.outputs(),
|
||||
var outputs = access.outputs,
|
||||
output;
|
||||
|
||||
if (outputs && outputs.length) {
|
||||
output = new Output(outputs[0]);
|
||||
if (outputs.size) {
|
||||
output = new Output(outputs.get(0));
|
||||
App.MIDI.output = output;
|
||||
|
||||
resolve(output);
|
||||
|
|
Loading…
Reference in New Issue