Log error when failing to list usermedia devices

So we can debug why this might be failing
pull/21833/head
David Baker 2021-03-18 16:41:22 +00:00
parent 9ac5f4d2ee
commit 84b6027d41
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ export default class VoiceUserSettingsTab extends React.Component {
} }
} }
if (error) { if (error) {
console.log("Failed to list userMedia devices", error);
const brand = SdkConfig.get().brand; const brand = SdkConfig.get().brand;
const ErrorDialog = sdk.getComponent('dialogs.ErrorDialog'); const ErrorDialog = sdk.getComponent('dialogs.ErrorDialog');
Modal.createTrackedDialog('No media permissions', '', ErrorDialog, { Modal.createTrackedDialog('No media permissions', '', ErrorDialog, {