diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 22:47:32 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 22:47:32 +0800 |
commit | 2f41ed50c198b2952b1af50de55df2f19d645033 (patch) | |
tree | 999b1c54dae4ef934ffe5144a293be0aed9c3c52 /packages/utils/src/fetchAsync.ts | |
parent | fcc8cdd36af3a21222d1b97884896ffbd8c2efd1 (diff) | |
download | dexon-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/src/fetchAsync.ts')
-rw-r--r-- | packages/utils/src/fetchAsync.ts | 2 |
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(() => { |