This change was introduced in #443. In some environments where window is not available it causes an attempt to access a property of window.location, which leads to an error.
Coverage remained the same at 91.429% when pulling b92ba14b991ee09a912daeaeb63e15eb73d46161 on zinigor:add/window-check into 7bc0ee32bce68c6d0bf3d9ba9193501ff28a7640 on visionmedia:master.
Coverage remained the same at 91.429% when pulling b92ba14b991ee09a912daeaeb63e15eb73d46161 on zinigor:add/window-check into 7bc0ee32bce68c6d0bf3d9ba9193501ff28a7640 on visionmedia:master.
This change was introduced in #443. In some environments where
window
is not available it causes an attempt to access a property ofwindow.location
, which leads to an error.