diff --git a/js/ui.js b/js/ui.js index 3d20c71a..591763e0 100644 --- a/js/ui.js +++ b/js/ui.js @@ -227,7 +227,7 @@ function createTimeline() { } const resetRegions = () => { - if (wavesurfer) wavesurfer.regions.clearRegions(); + if (wavesurfer) wavesurfer.clearRegions(); region = undefined; disableMenuItem(['analyseSelection', 'export-audio']); if (fileLoaded) enableMenuItem(['analyse']);