⚡ fix: hoisting do closeRecordModal no frontend e fallback Groq/Gemini no Whisper/Relatório
This commit is contained in:
+3
-3
@@ -2042,7 +2042,7 @@ const initApp = () => {
|
||||
}
|
||||
|
||||
// Atualizar timer
|
||||
const updateTimer = () => {
|
||||
function updateTimer() {
|
||||
if (!recordingStartTime) return;
|
||||
const elapsed = Math.floor((Date.now() - recordingStartTime) / 1000);
|
||||
const mins = Math.floor(elapsed / 60).toString().padStart(2, '0');
|
||||
@@ -2088,7 +2088,7 @@ const initApp = () => {
|
||||
}
|
||||
|
||||
// Mostrar prévia do relatório
|
||||
const showReportPreview = (data) => {
|
||||
function showReportPreview(data) {
|
||||
recordStateProcessing.style.display = 'none';
|
||||
recordStatePreview.style.display = 'flex';
|
||||
|
||||
@@ -2166,7 +2166,7 @@ const initApp = () => {
|
||||
}
|
||||
|
||||
// Fechar modal
|
||||
const closeRecordModal = () => {
|
||||
function closeRecordModal() {
|
||||
if (mediaRecorder && mediaRecorder.state !== 'inactive') {
|
||||
mediaRecorder.stop();
|
||||
mediaRecorder.stream.getTracks().forEach(t => t.stop());
|
||||
|
||||
Reference in New Issue
Block a user