Skip to content

Commit

Permalink
Stop using top-level this to stop rollup warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cr313 committed Jul 31, 2020
1 parent 046aa47 commit ae89c98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fetch.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var global = (function(self) {
return self
// eslint-disable-next-line no-invalid-this
})(typeof self !== 'undefined' ? self : this)
var global =
(typeof globalThis !== "undefined" && globalThis) ||
(typeof self !== "undefined" && self) ||
(typeof global !== "undefined" && global);

var support = {
searchParams: 'URLSearchParams' in global,
iterable: 'Symbol' in global && 'iterator' in Symbol,
Expand Down

0 comments on commit ae89c98

Please sign in to comment.