Skip to content

Commit

Permalink
fix: test for the presence of window.fetch (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhuff authored and JustinBeckwith committed Apr 26, 2019
1 parent 37940dc commit d3036fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isbrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

export function isBrowser(): boolean {
return typeof window !== 'undefined';
return typeof window !== 'undefined' && typeof window.fetch !== 'undefined';
}

0 comments on commit d3036fe

Please sign in to comment.