We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd7062 commit b825335Copy full SHA for b825335
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "hypnode",
3
- "version": "1.1.2",
+ "version": "1.1.3",
4
"description": "",
5
"main": "dist/index.js",
6
"types": "dist/index.d.ts",
src/index.ts
@@ -33,7 +33,7 @@ type Tag = string | ((attrs?: IAttrs) => HTMLElement);
33
* -------------------------------- */
34
35
function h(tag: Tag, attrs?: IAttrs, ...children: any[]): HTMLElement {
36
- const { document } = window || {};
+ const { document = null } = typeof window !== 'undefined' ? window : {};
37
38
children = [].concat.apply([], children);
39
0 commit comments