diff --git a/lib/helpers/ariaAppHider.js b/lib/helpers/ariaAppHider.js index 884620c9..5c17894b 100644 --- a/lib/helpers/ariaAppHider.js +++ b/lib/helpers/ariaAppHider.js @@ -1,7 +1,4 @@ -var _element = ""; -if(typeof window !== 'undefined'){ - _element = document.body; -} +var _element = typeof document !== 'undefined' ? document.body : null; function setElement(element) { if (typeof element === 'string') {