provide default for missing device labels
This commit is contained in:
parent
2eef3d610e
commit
a35c9ea585
3 changed files with 14 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue