We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6064f27 commit 33b08f9Copy full SHA for 33b08f9
packages/util/src/environment.ts
@@ -68,7 +68,7 @@ export function isNode(): boolean {
68
* Detect Browser Environment
69
*/
70
export function isBrowser(): boolean {
71
- return typeof window !== 'undefined';
+ return typeof self !== 'undefined';
72
}
73
74
/**
0 commit comments