Skip to content

Commit

Permalink
Compatible global equals to the false
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-coderl authored and JakeChampion committed May 10, 2021
1 parent 8f48ca6 commit 7727e50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fetch.js
@@ -1,7 +1,8 @@
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof self !== 'undefined' && self) ||
(typeof global !== 'undefined' && global)
(typeof global !== 'undefined' && global) ||
{}

var support = {
searchParams: 'URLSearchParams' in global,
Expand Down

0 comments on commit 7727e50

Please sign in to comment.