change(ui): add toast for recording error

This commit is contained in:
nick-delirium 2023-04-12 14:55:24 +02:00
parent 0e1ba6650d
commit a3eef1dacc

View file

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