aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-13 22:47:32 +0800
committerFabio Berger <me@fabioberger.com>2018-07-13 22:47:32 +0800
commit2f41ed50c198b2952b1af50de55df2f19d645033 (patch)
tree999b1c54dae4ef934ffe5144a293be0aed9c3c52 /packages/utils
parentfcc8cdd36af3a21222d1b97884896ffbd8c2efd1 (diff)
downloaddexon-sol-tools-2f41ed50c198b2952b1af50de55df2f19d645033.tar
dexon-sol-tools-2f41ed50c198b2952b1af50de55df2f19d645033.tar.gz
dexon-sol-tools-2f41ed50c198b2952b1af50de55df2f19d645033.tar.bz2
dexon-sol-tools-2f41ed50c198b2952b1af50de55df2f19d645033.tar.lz
dexon-sol-tools-2f41ed50c198b2952b1af50de55df2f19d645033.tar.xz
dexon-sol-tools-2f41ed50c198b2952b1af50de55df2f19d645033.tar.zst
dexon-sol-tools-2f41ed50c198b2952b1af50de55df2f19d645033.zip
Switch conditional
Diffstat (limited to 'packages/utils')
-rw-r--r--packages/utils/src/fetchAsync.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils/src/fetchAsync.ts b/packages/utils/src/fetchAsync.ts
index 47d87815e..8295ff5ec 100644
--- a/packages/utils/src/fetchAsync.ts
+++ b/packages/utils/src/fetchAsync.ts
@@ -7,7 +7,7 @@ export const fetchAsync = async (
timeoutMs: number = 20000,
): Promise<Response> => {
let optionsWithAbortParam;
- if (isNode) {
+ if (!isNode) {
const controller = new AbortController();
const signal = controller.signal;
setTimeout(() => {