From 34c3f8dbcfcb0880cd5b75ab85952572bb3d3ebd Mon Sep 17 00:00:00 2001 From: Samidy Date: Thu, 12 Mar 2026 05:04:42 +0300 Subject: [PATCH] Apply suggestion from @coderabbitai[bot] Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- js/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/utils.js b/js/utils.js index e8050d0..ae22d4c 100644 --- a/js/utils.js +++ b/js/utils.js @@ -189,10 +189,10 @@ export const getExtensionFromBlob = async (blob) => { if (format) return format; if (blob.type.includes('video')) return 'mp4'; - if (mimeType === 'audio/flac') return 'flac'; - if (mimeType === 'audio/ogg') return 'ogg'; - if (mimeType === 'audio/mp4' || mimeType === 'audio/x-m4a') return 'mp4'; - if (mimeType === 'audio/mp3' || mimeType === 'audio/mpeg') return 'mp3'; + if (blob.type === 'audio/flac') return 'flac'; + if (blob.type === 'audio/ogg') return 'ogg'; + if (blob.type === 'audio/mp4' || blob.type === 'audio/x-m4a') return 'mp4'; + if (blob.type === 'audio/mp3' || blob.type === 'audio/mpeg') return 'mp3'; return 'flac'; };