before audio recording close button fixes

This commit is contained in:
10G Meow 2022-02-20 12:30:43 +02:00
parent 128b19ef8f
commit 10d123b58b

View file

@ -353,9 +353,11 @@ export default {
}); });
}, },
cancelRecording() { cancelRecording() {
if(this.recorder) {
this.state = State.INITIAL; this.state = State.INITIAL;
this.recorder.stop(); this.recorder.stop();
this.recorder = null; this.recorder = null;
}
this.close(); this.close();
}, },
pauseRecording() { pauseRecording() {