We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6064f27 commit 4789457Copy full SHA for 4789457
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 === 'object' && self.self === self;
72
}
73
74
/**
0 commit comments