Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props: IFileElementComponent) {
super(props);
this.canRecord = Recorder.isRecordingSupported();
try {
this.recorder = new Recorder({
encoderPath: '/assets/recorder/encoderWorker.min.js'
});
} catch (err) {
console.warn('Recording is not supported');
this.canRecord = false;
}
}
constructor(props: IFileElementComponent) {
super(props);
this.canRecord = Recorder.isRecordingSupported();
try {
this.recorder = new Recorder({
encoderPath: '/assets/recorder/encoderWorker.min.js'
});
} catch (err) {
console.warn('Recording is not supported');
this.canRecord = false;
}
}