1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-25 17:02:04 +03:00

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;