Comparing version 4.2.6 to 4.2.7
{ | ||
"name": "window", | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"description": "Exports a jsdom window object.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -68,3 +68,3 @@ # window | ||
function createTitle(text, win) { | ||
win = win || window; | ||
win = win || (typeof window === 'undefined' ? undefined : window); | ||
@@ -71,0 +71,0 @@ const title = win.document.createElement('h1'); |
Sorry, the diff of this file is not supported yet
13096