1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 12:18:09 +00:00

handle NotReadableError

This commit is contained in:
slowbackspace 2019-02-20 16:49:49 +01:00
parent 48c0b2afce
commit c7f4796191

View File

@ -108,7 +108,8 @@ class QrModal extends React.Component<Props, State> {
this.props.onError(err);
}
if (err.name === 'NotAllowedError' || err.name === 'PermissionDeniedError') {
if (err.name === 'NotAllowedError' || err.name === 'PermissionDeniedError'
|| err.name === 'NotReadableError' || err.name === 'TrackStartError') {
this.setState({
error: 'Permission to access the camera was denied.',
});