Skip to content

Commit

Permalink
fix: Use window
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Nov 7, 2019
1 parent 38531b1 commit 4ed6c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function toObject(name: keyof Extensions) {

case 'iterator':
default: {
return 'undefined' === typeof(window) ? global : window;
return window;
}
}
}
Expand Down

0 comments on commit 4ed6c11

Please sign in to comment.