diff --git a/extension/manifest.chrome.json b/extension/manifest.chrome.json index 53f7a63..9531be1 100644 --- a/extension/manifest.chrome.json +++ b/extension/manifest.chrome.json @@ -1,6 +1,6 @@ { "manifest_version": 3, - "name": "LightSession Pro", + "name": "LightSession Pro for ChatGPT", "version": "1.6.1", "description": "Keep ChatGPT fast by keeping only the last N messages in the DOM. Local-only.", "icons": { diff --git a/extension/manifest.firefox.json b/extension/manifest.firefox.json index 7881096..1089414 100644 --- a/extension/manifest.firefox.json +++ b/extension/manifest.firefox.json @@ -1,6 +1,6 @@ { "manifest_version": 3, - "name": "LightSession Pro", + "name": "LightSession Pro for ChatGPT", "version": "1.6.1", "description": "Keep ChatGPT fast by keeping only the last N messages in the DOM. Local-only.", "icons": { diff --git a/extension/src/shared/messages.ts b/extension/src/shared/messages.ts index c040b80..a6cac9b 100644 --- a/extension/src/shared/messages.ts +++ b/extension/src/shared/messages.ts @@ -34,9 +34,9 @@ export async function sendMessageWithTimeout( // Check Chrome lastError (set when no listener exists) if (isChrome) { - const lastError = (chrome as { runtime: { lastError?: { message?: string } } }).runtime.lastError; - if (lastError) { - throw new Error(lastError.message ?? 'Chrome runtime error'); + const chromeLastError = (chrome as { runtime: { lastError?: { message?: string } } }).runtime.lastError; + if (chromeLastError) { + throw new Error(chromeLastError.message ?? 'Chrome runtime error'); } }