Fixing missing early return if webcam not available
This commit is contained in:
parent
25f4adc7ad
commit
eb6cfdf53d
@ -418,6 +418,7 @@ export const localStreamStore = derived<Readable<MediaStreamConstraints>, LocalS
|
|||||||
error: new Error('Unable to access your camera or microphone. You need to use a HTTPS connection.'),
|
error: new Error('Unable to access your camera or microphone. You need to use a HTTPS connection.'),
|
||||||
constraints
|
constraints
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
//throw new Error('Unable to access your camera or microphone. Your browser is too old.');
|
//throw new Error('Unable to access your camera or microphone. Your browser is too old.');
|
||||||
set({
|
set({
|
||||||
@ -425,6 +426,7 @@ export const localStreamStore = derived<Readable<MediaStreamConstraints>, LocalS
|
|||||||
error: new Error('Unable to access your camera or microphone. Your browser is too old.'),
|
error: new Error('Unable to access your camera or microphone. Your browser is too old.'),
|
||||||
constraints
|
constraints
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user