🐛 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();
|
App.MIDI.output = new Output();
|
||||||
|
|
||||||
navigator.requestMIDIAccess().then(function (access) {
|
navigator.requestMIDIAccess().then(function (access) {
|
||||||
var outputs = access.outputs(),
|
var outputs = access.outputs,
|
||||||
output;
|
output;
|
||||||
|
|
||||||
if (outputs && outputs.length) {
|
if (outputs.size) {
|
||||||
output = new Output(outputs[0]);
|
output = new Output(outputs.get(0));
|
||||||
App.MIDI.output = output;
|
App.MIDI.output = output;
|
||||||
|
|
||||||
resolve(output);
|
resolve(output);
|
||||||
|
|
Loading…
Reference in New Issue