Skip to content

Commit 273f129

Browse files
committed
Now must work in node and browser
1 parent 654f0a9 commit 273f129

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

assets/_decimal.js/decimal.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4769,7 +4769,9 @@
47694769

47704770

47714771
// Export.
4772-
if (global) {
4772+
if (typeof window !== 'undefined') {
4773+
globalScope = window;
4774+
} else if (typeof global !== 'undefined') {
47734775
globalScope = global;
47744776
}
47754777
if (!globalScope) {

0 commit comments

Comments
 (0)