gragland / chatgpt-chrome-extension

A ChatGPT Chrome extension. Integrates ChatGPT into every text box on the internet.
MIT License
2.83k stars 455 forks source link

replace .env instead of .env-example in dotenvsafe and also instead of globalThis imported fetch from node-fetch directly #53

Open mayhim182 opened 1 year ago

mayhim182 commented 1 year ago

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');
}
Khyaghobi1361 commented 8 months ago

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

Khyaghobi1361 commented 8 months ago

khyaghobi1361@gmail.com

Khyaghobi1361 commented 8 months ago

![Uploading Screenshot_۲۰۲۳۱۰۲۹-۲۳۵۳۳۸_Chrome.jpg…]()

mayhim182 commented 8 months ago

can u merge these changes