diff --git a/src/CookieBanner.js b/src/CookieBanner.js index 2234a71..cc615bf 100644 --- a/src/CookieBanner.js +++ b/src/CookieBanner.js @@ -106,7 +106,7 @@ const CookieBanner = React.createClass({ }, acceptsCookies() { - return cookie(this.props.cookie) ? true : false; + return (typeof window !== 'undefined') && cookie(this.props.cookie); }, render() {