Skip to content

Commit

Permalink
check if window exists in Region (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad19 authored Dec 14, 2016
1 parent f90041e commit ef5a097
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Region.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ function getObservable$(name) {
}

function isRootAppAvailable() {
return window.app;
return (
typeof window !== 'undefined' &&
window.app
);
}

export default React.createClass({
Expand Down

0 comments on commit ef5a097

Please sign in to comment.