Switch to double quotes and reformat codebase with Biome

This commit is contained in:
Mohamed Boudra
2026-03-21 20:22:15 +07:00
parent ab40786882
commit f6579dbeb4
805 changed files with 38132 additions and 40175 deletions
@@ -46,7 +46,7 @@ export function useAudioRecorder(config?: AudioCaptureConfig) {
}
const detected = MIME_TYPE_CANDIDATES.find((candidate) =>
window.MediaRecorder.isTypeSupported(candidate)
window.MediaRecorder.isTypeSupported(candidate),
);
supportedMimeTypeRef.current = detected ?? null;
@@ -165,13 +165,13 @@ export function useAudioRecorder(config?: AudioCaptureConfig) {
if (!secureContext && !isDesktopApp) {
throw new Error(
`Microphone access requires HTTPS or localhost. Current origin: ${currentOrigin}`
`Microphone access requires HTTPS or localhost. Current origin: ${currentOrigin}`,
);
}
if (!secureContext && isDesktopApp) {
console.warn(
"[AudioRecorder][Web] Insecure context reported under Desktop; attempting getUserMedia anyway",
{ currentOrigin }
{ currentOrigin },
);
}
@@ -335,9 +335,10 @@ export function useAudioRecorder(config?: AudioCaptureConfig) {
};
}, [hardReset]);
const getSupportedMimeType = useCallback(() => detectSupportedMimeType(), [
detectSupportedMimeType,
]);
const getSupportedMimeType = useCallback(
() => detectSupportedMimeType(),
[detectSupportedMimeType],
);
return {
start,