fix(ui): fix screen rec error handling

This commit is contained in:
nick-delirium 2023-04-28 16:18:14 +02:00
parent d68a74d2a0
commit 99f1b845d7

View file

@ -106,8 +106,8 @@ export async function screenRecorder(recName: string, sessionId: string, saveCb:
}
}
} catch (e) {
console.error('OpenReplay:', e);
toast.error('Screen recording is not permitted by your system and/or browser. Make sure to enable it in your browser as well as in your system settings.');
throw new Error('OpenReplay recording: ' + e);
}
}