chatgpt-chrome-extension
chatgpt-chrome-extension copied to clipboard
replace .env instead of .env-example in dotenvsafe and also instead of globalThis imported fetch from node-fetch directly
To avoid exception from being thrown did this
// src/fetch.js (or fetch.mjs if your project is configured to use ES modules)
import fetch from 'node-fetch';
if (typeof fetch !== 'function') {
throw new Error('Invalid environment: global fetch not defined');
}
// src/fetch.js (or fetch.mjs if your project is configured to use ES modules) import fetch from 'node-fetch';
if (typeof fetch !== 'function') { throw new Error('Invalid environment: global fetch not defined'); }
can u merge these changes