Auto-deploy: 2026-06-02 18:05:17

This commit is contained in:
Hamza-Ayed
2026-06-02 18:05:17 +03:00
parent 36e4dd42e4
commit 5c975b0a6b
4 changed files with 101 additions and 1 deletions

View File

@@ -70,7 +70,13 @@
return; // offscreen script restarts it automatically
}
stopListening();
showStatus('error', '❌ خطأ: ' + getArabicError(message.payload.error));
if (message.payload.error === 'not-allowed') {
showStatus('error', '❌ الرجاء منح الصلاحية (تم فتح صفحة جديدة)');
chrome.runtime.sendMessage({ type: 'OPEN_PERMISSION_PAGE' });
} else {
showStatus('error', '❌ خطأ: ' + getArabicError(message.payload.error));
}
} else if (message.type === 'OFFSCREEN_RECORDING_END') {
if (isListening) {
// Unexpected end from offscreen while we still consider ourselves listening