Skip to content

Commit

Permalink
Fix _require text and globalThis
Browse files Browse the repository at this point in the history
  • Loading branch information
dangdennis committed Nov 1, 2018
1 parent 9d86eb2 commit ab8858a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Ky {
}, hooks);
this._throwHttpErrors = throwHttpErrors;

const headers = new self.Headers(this._options.headers || {});
const headers = new _globalThis.Headers(this._options.headers || {});

if (json) {
headers.set('content-type', 'application/json');
Expand Down Expand Up @@ -245,7 +245,7 @@ class Ky {
await hook(this._options);
}

return timeout(self.fetch(this._input, this._options), this._timeout);
return timeout(_globalThis.fetch(this._input, this._options), this._timeout);
}

_stream(response, onProgress) {
Expand Down

0 comments on commit ab8858a

Please sign in to comment.