We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 523658c + 7f775f8 commit ea47fc7Copy full SHA for ea47fc7
1 file changed
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