Skip to content

Commit 4c8ed91

Browse files
committed
imporved env check
1 parent 33d47db commit 4c8ed91

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: lib/helpers/ariaAppHider.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
var _element = "";
2-
if(typeof window !== 'undefined'){
3-
_element = document.body;
4-
}
1+
var _element = typeof document !== 'undefined' ? document.body : null;
52

63
function setElement(element) {
74
if (typeof element === 'string') {

0 commit comments

Comments
 (0)