provide default for missing device labels

This commit is contained in:
Bruno Windels 2019-06-17 19:36:52 +02:00
parent 2eef3d610e
commit a35c9ea585
3 changed files with 14 additions and 3 deletions

View file

@ -26,8 +26,6 @@ export default {
const audioinput = [];
const videoinput = [];
if (devices.some((device) => !device.label)) return false;
devices.forEach((device) => {
switch (device.kind) {
case 'audiooutput': audiooutput.push(device); break;