🐛 Update Midi API to latest Chrome support

access.outputs is no longer a method
This commit is contained in:
matteo78 2014-12-21 21:22:30 +01:00
parent ace2c5b212
commit c7c47507d0
1 changed files with 3 additions and 3 deletions

View File

@ -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);