Auto-deploy: 2026-06-02 18:06:52
This commit is contained in:
@@ -40,6 +40,12 @@ function initRecognition(language) {
|
||||
|
||||
recognition.onerror = (event) => {
|
||||
console.error('[Offscreen] Recognition error:', event.error);
|
||||
|
||||
// Prevent infinite restart loop on fatal errors
|
||||
if (event.error !== 'no-speech') {
|
||||
isRecording = false;
|
||||
}
|
||||
|
||||
chrome.runtime.sendMessage({
|
||||
type: 'OFFSCREEN_RECORDING_ERROR',
|
||||
payload: { error: event.error }
|
||||
|
||||
Reference in New Issue
Block a user