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

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.'), 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;
} }
} }