Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using top-level this to stop rollup warning #815

Merged
merged 6 commits into from Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions fetch.js
@@ -1,7 +1,5 @@
var global = (function(self) {
return self
// eslint-disable-next-line no-invalid-this
})(typeof self !== 'undefined' ? self : this)
var global = (typeof self !== 'undefined' && self) || (typeof global !== 'undefined' && global)

var support = {
searchParams: 'URLSearchParams' in global,
iterable: 'Symbol' in global && 'iterator' in Symbol,
Expand Down
3 changes: 1 addition & 2 deletions rollup.config.js
Expand Up @@ -3,7 +3,6 @@ export default {
output: {
file: 'dist/fetch.umd.js',
format: 'umd',
name: 'WHATWGFetch',
strict: false
name: 'WHATWGFetch'
}
}