π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
import type { VoiceErrorReason } from './voice-update';
export function startFailureReason(error: unknown): VoiceErrorReason {
if (!(error instanceof Error)) return 'unknown';
if (error.name === 'NotAllowedError' || error.name === 'SecurityError') return 'permission-denied';
if (error.name === 'NotFoundError' || error.name === 'OverconstrainedError') return 'no-device';
if (error.name === 'NotSupportedError') return 'unsupported';
return 'unknown';
}