aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils
diff options
context:
space:
mode:
Diffstat (limited to 'packages/utils')
-rw-r--r--packages/utils/src/configured_bignumber.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/utils/src/configured_bignumber.ts b/packages/utils/src/configured_bignumber.ts
index 977042f1e..f97452337 100644
--- a/packages/utils/src/configured_bignumber.ts
+++ b/packages/utils/src/configured_bignumber.ts
@@ -12,7 +12,8 @@ BigNumber.config({
});
// Set a debug print function for NodeJS
-if (typeof window === 'undefined') { // Check if running in NodeJS
+import isNode = require('detect-node');
+if (!isNode) {
const util = require('util');
// Set a custom util.inspect function