- Added "audioCapture" permission to manifest for microphone access. - Introduced DeepSeek as a new AI provider option in the side panel. - Implemented a capture mode selection (tab-only, mic-only, mixed) in the side panel. - Added options to enable/disable the extension and auto-open the assistant window. - Integrated a mic monitor feature with live input level visualization. - Included buttons for requesting microphone permission and granting tab access. - Updated styles for new sections and mic level visualization. - Enhanced model fetching logic to support DeepSeek and improved error handling.
13 lines
528 B
JavaScript
13 lines
528 B
JavaScript
document.addEventListener('DOMContentLoaded', function() {
|
|
const transcriptDiv = document.getElementById('transcript');
|
|
const aiResponseDiv = document.getElementById('aiResponse');
|
|
|
|
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
|
|
if (request.action === 'updateTranscript') {
|
|
transcriptDiv.textContent = request.transcript;
|
|
} else if (request.action === 'updateAIResponse') {
|
|
aiResponseDiv.textContent = request.response;
|
|
}
|
|
});
|
|
});
|