Switch conditional

This commit is contained in:
Fabio Berger
2018-07-13 16:47:32 +02:00
parent fcc8cdd36a
commit 2f41ed50c1

View File

@@ -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(() => {