Skip to content

Commit ea47fc7

Browse files
committed
Merge pull request #1 from Josh-a-e/isomorphic_support
Isomorphic support
2 parents 523658c + 7f775f8 commit ea47fc7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/helpers/ariaAppHider.js

Lines changed: 1 addition & 2 deletions
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)