We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6967ad commit f8d5dc7Copy full SHA for f8d5dc7
lib/browser/utils.ts
@@ -40,7 +40,7 @@ export const isNode: boolean =
40
(typeof process !== 'undefined' && {}.toString.call(process) === '[object process]');
41
42
export const isBrowser: boolean =
43
- !isNode && !isWebWorker && !!(window && window['HTMLElement']);
+ !isNode && !isWebWorker && !!(typeof window !== 'undefined' && window['HTMLElement']);
44
45
46
export function patchProperty(obj, prop) {
0 commit comments