You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Resolve linting errors and apply previous fixes
This commit addresses linting errors identified after the initial bugfix submission and includes the original intended fixes. Corrections for linting: - Modified `package.json` to use `npx eslint` for `lint` and `lint:fix` scripts to ensure the correct local ESLint version is used. - Added `"webextensions": true` to `.eslintrc.json` under `env` to recognize browser extension global variables like `chrome`. - Removed the unused function `prepareForForegroundRequests` from `src/content-script/index.jsx`. Original fixes included: - In `src/background/index.mjs`: - Ensured that `port.proxy.postMessage({ session })` is called in `executeApi` even if `port.proxy` already exists. - Added comprehensive `try...catch` blocks and detailed logging. - Added 'blocking' to `onBeforeSendHeaders` listener options. - In `src/content-script/index.jsx`: - Refactored logic to `manageChatGptTabState` for dynamic and correct (re-)registration of the port listener for ChatGPT Web models. - Added comprehensive `try...catch` blocks and detailed logging.
0 commit comments