Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/popup-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class PopupInterfaceManager {
return text.replace(/\n/g, '<br>').replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
}

updatePageInfo(title, status) {
updatePageInfo(title, _status) {
const titleEl = document.getElementById('current-page-title');
if (titleEl) titleEl.textContent = title;
}
Expand Down Expand Up @@ -481,7 +481,7 @@ class PopupInterfaceManager {
const text = el.innerText;
navigator.clipboard.writeText(text).then(() => {
this.showSuccessToast('Copied to clipboard');
}).catch(err => {
}).catch(_err => {
this.showErrorToast('Failed to copy');
});
}
Expand All @@ -504,7 +504,7 @@ class PopupInterfaceManager {
}
refreshAnalysisCards() {}
updateLanguageDetection() {}
calculateReadabilityScore(text) { return { score: 80, level: 'Easy' }; }
calculateReadabilityScore(_text) { return { score: 80, level: 'Easy' }; }

displayAnalysisResult(type, data) {
const el = document.getElementById(`${type}-result`);
Expand Down
2 changes: 1 addition & 1 deletion src/services/ai-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class AIService {
* @param {Object} requestParams - Request parameters
* @returns {Promise<Object>} Provider response
*/
async makeProviderRequest(requestParams) {
async makeProviderRequest(_requestParams) {
// This would interface with the actual AI provider APIs
// For now, return a mock response
return {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/extension-loading.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test.describe('Extension Loading', () => {
expect(extensionErrors).toHaveLength(0);
});

test('should create context menu items', async ({ page, context }) => {
test('should create context menu items', async ({ page, context: _context }) => {
await page.goto('https://example.com');

// Select some text to trigger context menu
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/extension-workflow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Extension Integration Workflow', () => {
const messageHandler = chrome.runtime.onMessage.addListener.mock.calls[0][0];

// Execute handler - Note: the handler is async but returns true immediately
const result = messageHandler(message, sender, sendResponse);
messageHandler(message, sender, sendResponse);

// Verify response is eventually sent
await vi.waitFor(() => {
Expand Down