Skip to content

Commit 920d421

Browse files
committed
Merge pull request #70 from dinodsaurus/master
added suport for isomorphic rendering
2 parents ae68cc1 + 4c8ed91 commit 920d421

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: lib/helpers/ariaAppHider.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var _element = document.body;
1+
var _element = typeof document !== 'undefined' ? document.body : null;
22

33
function setElement(element) {
44
if (typeof element === 'string') {
@@ -39,4 +39,3 @@ exports.setElement = setElement;
3939
exports.show = show;
4040
exports.hide = hide;
4141
exports.resetForTesting = resetForTesting;
42-

0 commit comments

Comments
 (0)