Skip to content

Commit

Permalink
Replace typeof window checks with typeof document checks
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Dec 2, 2022
1 parent 300712e commit 97d8b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import warning from 'tiny-warning';
/**
* Checks if we're running in a browser environment.
*/
export const isBrowser = typeof window !== 'undefined';
export const isBrowser = typeof document !== 'undefined';

/**
* Checks whether we're running from a local file system.
Expand Down

0 comments on commit 97d8b87

Please sign in to comment.