Skip to content

Commit

Permalink
use typeof check (#42)
Browse files Browse the repository at this point in the history
fixes #41
  • Loading branch information
bantic authored Feb 15, 2017
1 parent 89a33b1 commit 2170c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export function normalizeTagName(tagName) {
return tagName.toLowerCase();
}

export const isNode = !window && (typeof module === 'object' && typeof module.require === 'function');
export const isNode = typeof window === 'undefined' && (typeof module === 'object' && typeof module.require === 'function');
export const hasDOM = typeof document === 'object';

0 comments on commit 2170c2b

Please sign in to comment.