From d3036fee02d078f2bffcf6be8b67806cbd0879fa Mon Sep 17 00:00:00 2001 From: Gil Date: Fri, 26 Apr 2019 14:51:47 -0700 Subject: [PATCH] fix: test for the presence of window.fetch (#90) --- src/isbrowser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isbrowser.ts b/src/isbrowser.ts index 44812f45..cb43f08c 100644 --- a/src/isbrowser.ts +++ b/src/isbrowser.ts @@ -15,5 +15,5 @@ */ export function isBrowser(): boolean { - return typeof window !== 'undefined'; + return typeof window !== 'undefined' && typeof window.fetch !== 'undefined'; }