Skip to content

Commit

Permalink
added suport for isomorphic rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
dinodsaurus committed Sep 23, 2015
1 parent ae68cc1 commit 33d47db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/helpers/ariaAppHider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
var _element = document.body;
var _element = "";
if(typeof window !== 'undefined'){
_element = document.body;
}

function setElement(element) {
if (typeof element === 'string') {
Expand Down Expand Up @@ -39,4 +42,3 @@ exports.setElement = setElement;
exports.show = show;
exports.hide = hide;
exports.resetForTesting = resetForTesting;

0 comments on commit 33d47db

Please sign in to comment.