Skip to content

Commit

Permalink
imporved env check
Browse files Browse the repository at this point in the history
  • Loading branch information
dinodsaurus committed Sep 25, 2015
1 parent 33d47db commit 4c8ed91
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/helpers/ariaAppHider.js
Original file line number Diff line number Diff line change
@@ -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') {
Expand Down

0 comments on commit 4c8ed91

Please sign in to comment.