We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33d47db commit 4c8ed91Copy full SHA for 4c8ed91
lib/helpers/ariaAppHider.js
@@ -1,7 +1,4 @@
1
-var _element = "";
2
-if(typeof window !== 'undefined'){
3
- _element = document.body;
4
-}
+var _element = typeof document !== 'undefined' ? document.body : null;
5
6
function setElement(element) {
7
if (typeof element === 'string') {
0 commit comments