Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix: window undefined in node environments
Browse files Browse the repository at this point in the history
Closes #305
  • Loading branch information
NathanWalker authored and mhevery committed Apr 8, 2016
1 parent a6967ad commit f8d5dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const isNode: boolean =
(typeof process !== 'undefined' && {}.toString.call(process) === '[object process]');

export const isBrowser: boolean =
!isNode && !isWebWorker && !!(window && window['HTMLElement']);
!isNode && !isWebWorker && !!(typeof window !== 'undefined' && window['HTMLElement']);


export function patchProperty(obj, prop) {
Expand Down

0 comments on commit f8d5dc7

Please sign in to comment.