From eb6cfdf53d74dbd7e1352abb57760575e85ca1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Thu, 3 Jun 2021 10:39:30 +0200 Subject: [PATCH] Fixing missing early return if webcam not available --- front/src/Stores/MediaStore.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/src/Stores/MediaStore.ts b/front/src/Stores/MediaStore.ts index 6d6fb4a8..dafdffc4 100644 --- a/front/src/Stores/MediaStore.ts +++ b/front/src/Stores/MediaStore.ts @@ -418,6 +418,7 @@ export const localStreamStore = derived, 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, LocalS error: new Error('Unable to access your camera or microphone. Your browser is too old.'), constraints }); + return; } }