change(ui): add toast for recording error
This commit is contained in:
parent
0e1ba6650d
commit
a3eef1dacc
1 changed files with 4 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue