mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
Fixed memory leak as suggested by Mathieu
This commit is contained in:
@@ -110,6 +110,12 @@ export default function Recorder(props: RecorderProps) {
|
||||
: undefined,
|
||||
});
|
||||
|
||||
if (!props.transcriptId)
|
||||
{
|
||||
const _wshack: any = _wavesurfer;
|
||||
_wshack.renderer.renderSingleCanvas = () => {};
|
||||
}
|
||||
|
||||
const wsWrapper = _wavesurfer.getWrapper();
|
||||
wsWrapper.style.cursor = "pointer";
|
||||
wsWrapper.style.backgroundColor = "RGB(240 240 240)";
|
||||
|
||||
Reference in New Issue
Block a user