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
2 changes: 1 addition & 1 deletion extension/manifest.chrome.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.firefox.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions extension/src/shared/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export async function sendMessageWithTimeout<T extends RuntimeResponse>(

// 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');
}
}

Expand Down