Skip to content

Commit

Permalink
Now must work in node and browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jespino committed Mar 17, 2017
1 parent 654f0a9 commit 273f129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/_decimal.js/decimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4769,7 +4769,9 @@


// Export.
if (global) {
if (typeof window !== 'undefined') {
globalScope = window;
} else if (typeof global !== 'undefined') {
globalScope = global;
}
if (!globalScope) {
Expand Down
Loading

0 comments on commit 273f129

Please sign in to comment.