chatgpt-chrome-extension icon indicating copy to clipboard operation
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

Open mayhim182 opened this issue 1 year ago • 4 comments

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

mayhim182 avatar May 30 '23 05:05 mayhim182

// 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 avatar Oct 29 '23 20:10 Khyaghobi1361

Uploading Screenshot_۲۰۲۳۱۰۲۹-۲۳۵۳۳۸_Chrome.jpg…

Khyaghobi1361 avatar Oct 29 '23 20:10 Khyaghobi1361

can u merge these changes

mayhim182 avatar Nov 02 '23 07:11 mayhim182