Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fl2on authored Jan 13, 2024
1 parent 898a2a9 commit 6388e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ function pauseRecording() {
}

function stopRecording() {
$notification.classList.add('hidden');
if (mediaRecorder && mediaRecorder.state !== 'inactive') {
mediaRecorder.stop();
handleRecordingStop();
$notification.classList.add('hidden');
}
}

Expand Down Expand Up @@ -140,4 +140,4 @@ function downloadVideo() {
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
}
}

0 comments on commit 6388e71

Please sign in to comment.