Skip to content

Commit

Permalink
fix: clientside window check (thanks @damassi)
Browse files Browse the repository at this point in the history
  • Loading branch information
damassi authored and nodkz committed Feb 1, 2018
1 parent 6c04a85 commit da91c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RelayRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { ConcreteBatch, Variables, CacheConfig, UploadableMap, FetchOpts } from './definition';

function getFormDataInterface(): ?Class<FormData> {
return (window && window.FormData) || (global && global.FormData);
return (typeof window !== 'undefined' && window.FormData) || (global && global.FormData);
}

export default class RelayRequest {
Expand Down

0 comments on commit da91c62

Please sign in to comment.