Auto-deploy: 2026-06-02 19:23:40

This commit is contained in:
Hamza-Ayed
2026-06-02 19:23:40 +03:00
parent 6d054901dc
commit a3b8732ba2

View File

@@ -287,7 +287,18 @@ function initDictation() {
function stopRecording() {
if (!isRecording) return;
isRecording = false;
chrome.runtime.sendMessage({ type: 'STOP_RECORDING_FROM_POPUP' });
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
const activeTab = tabs[0];
if (activeTab && activeTab.id) {
chrome.tabs.sendMessage(activeTab.id, { type: 'STOP_RECORDING_FROM_POPUP' }, () => {
if (chrome.runtime.lastError) {
console.warn('Could not send STOP message to tab:', chrome.runtime.lastError.message);
}
});
}
});
micBtn.style.background = 'linear-gradient(135deg, var(--accent), #9b5de5)';
micBtn.innerHTML = '🎤';