Skip to content

Commit

Permalink
fix: upload-api-proxy default fetch binds to globalThis (#361)
Browse files Browse the repository at this point in the history
Motivation:
* attempt to fix according to this theory
#359 (comment)
  • Loading branch information
gobengo authored Jan 18, 2023
1 parent d8325af commit a96e6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/access-api/src/service/upload-api-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const uploadApiEnvironments = {
* @param {URL} [options.uploadApi.staging]
*/
function getDefaultConnections(options) {
const { fetch = globalThis.fetch, uploadApi } = options
const { fetch = globalThis.fetch.bind(globalThis), uploadApi } = options
return {
default: createUcantoHttpConnection({
...uploadApiEnvironments.production,
Expand Down

0 comments on commit a96e6af

Please sign in to comment.