We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae68cc1 + 4c8ed91 commit 920d421Copy full SHA for 920d421
lib/helpers/ariaAppHider.js
@@ -1,4 +1,4 @@
1
-var _element = document.body;
+var _element = typeof document !== 'undefined' ? document.body : null;
2
3
function setElement(element) {
4
if (typeof element === 'string') {
@@ -39,4 +39,3 @@ exports.setElement = setElement;
39
exports.show = show;
40
exports.hide = hide;
41
exports.resetForTesting = resetForTesting;
42
-
0 commit comments