From a3eef1dacc1686d89e3c38ac8fbec512cfc45f7e Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 12 Apr 2023 14:55:24 +0200 Subject: [PATCH] change(ui): add toast for recording error --- frontend/app/utils/screenRecorder.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/utils/screenRecorder.ts b/frontend/app/utils/screenRecorder.ts index a434f5d39..415cf2d7b 100644 --- a/frontend/app/utils/screenRecorder.ts +++ b/frontend/app/utils/screenRecorder.ts @@ -1,3 +1,5 @@ +import { toast } from 'react-toastify'; + const FILE_TYPE = 'video/webm'; const FRAME_RATE = 30; @@ -104,7 +106,8 @@ export async function screenRecorder(recName: string, sessionId: string, saveCb: } } } catch (e) { - console.log(e); + console.error('OpenReplay:', e); + toast.error('Screen recording is not permitted on your browser'); } }