Skip to content

Commit

Permalink
Merge pull request #192 from qgustavor/next
Browse files Browse the repository at this point in the history
Release - v1.2.2
  • Loading branch information
qgustavor authored May 4, 2024
2 parents 1bd34d3 + ce25076 commit 87d7c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class API extends EventEmitter {

if (!API.fetchModule) {
if (typeof globalThis.fetch === 'function') {
API.fetchModule = globalThis.fetch
API.fetchModule = globalThis.fetch.bind(globalThis)
} else {
const nodeFetch = await import('node-fetch')
API.fetchModule = nodeFetch.fetch
Expand Down

0 comments on commit 87d7c1a

Please sign in to comment.