Fixing missing early return if webcam not available

This commit is contained in:
David Négrier 2021-06-03 10:39:30 +02:00
parent 25f4adc7ad
commit eb6cfdf53d
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}