Skip to content

Commit 4409b08

Browse files
authored
chore: rename extension to LightSession Pro for ChatGPT (#9)
* feat(chrome): add Chrome Web Store support - Add separate manifests for Chrome and Firefox - Fix cross-browser API compatibility (browser vs chrome) - Fix Chrome MV3 async messaging (sendResponse pattern) - Fix CustomEvent detail passing via JSON serialization - Add auto-reload on settings change - Add tabs permission for reload functionality - Add .dev marker for debug mode detection - Add comprehensive tests (188 total) * fix(chrome): add retry logic for service worker wake-up Chrome MV3 service workers can be inactive when popup opens, causing sendMessage to return undefined. Added exponential backoff retry logic (50ms, 100ms, 200ms) to handle service worker wake-up delay. - Add MESSAGE_RETRY_DELAYS_MS constant for backoff intervals - Validate response is not undefined before returning - Check chrome.runtime.lastError in Chrome context - Add 5 new tests for retry scenarios * chore: rename extension to LightSession Pro for ChatGPT Update name in both Chrome and Firefox manifests for better visibility in extension stores.
1 parent fbce3d3 commit 4409b08

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

extension/manifest.chrome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version": 3,
3-
"name": "LightSession Pro",
3+
"name": "LightSession Pro for ChatGPT",
44
"version": "1.6.1",
55
"description": "Keep ChatGPT fast by keeping only the last N messages in the DOM. Local-only.",
66
"icons": {

extension/manifest.firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version": 3,
3-
"name": "LightSession Pro",
3+
"name": "LightSession Pro for ChatGPT",
44
"version": "1.6.1",
55
"description": "Keep ChatGPT fast by keeping only the last N messages in the DOM. Local-only.",
66
"icons": {

extension/src/shared/messages.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export async function sendMessageWithTimeout<T extends RuntimeResponse>(
3434

3535
// Check Chrome lastError (set when no listener exists)
3636
if (isChrome) {
37-
const lastError = (chrome as { runtime: { lastError?: { message?: string } } }).runtime.lastError;
38-
if (lastError) {
39-
throw new Error(lastError.message ?? 'Chrome runtime error');
37+
const chromeLastError = (chrome as { runtime: { lastError?: { message?: string } } }).runtime.lastError;
38+
if (chromeLastError) {
39+
throw new Error(chromeLastError.message ?? 'Chrome runtime error');
4040
}
4141
}
4242

0 commit comments

Comments
 (0)