Skip to content

Commit

Permalink
Merge pull request #4 from deathcap/global
Browse files Browse the repository at this point in the history
Fix Node v6 incompatibility, DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
  • Loading branch information
mikolalysenko authored Jul 2, 2016
2 parents 3a4fd6e + 508510c commit 0f9a3cf
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 @@ -25,8 +25,8 @@ function isGlobal(identifier) {
}
if(typeof window !== "undefined") {
return identifier in window
} else if(typeof GLOBAL !== "undefined") {
return identifier in GLOBAL
} else if(typeof global !== "undefined") {
return identifier in global
} else if(typeof self !== "undefined") {
return identifier in self
} else {
Expand Down

0 comments on commit 0f9a3cf

Please sign in to comment.