diff --git a/lib/helpers/ariaAppHider.js b/lib/helpers/ariaAppHider.js index 02ba80eb..5c17894b 100644 --- a/lib/helpers/ariaAppHider.js +++ b/lib/helpers/ariaAppHider.js @@ -1,4 +1,4 @@ -var _element = document.body; +var _element = typeof document !== 'undefined' ? document.body : null; function setElement(element) { if (typeof element === 'string') { @@ -39,4 +39,3 @@ exports.setElement = setElement; exports.show = show; exports.hide = hide; exports.resetForTesting = resetForTesting; -