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.'),
|
||||
constraints
|
||||
});
|
||||
return;
|
||||
} else {
|
||||
//throw new Error('Unable to access your camera or microphone. Your browser is too old.');
|
||||
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.'),
|
||||
constraints
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user