const React = require('react'); const _ = require('lodash'); const Nav = require('naturalcrit/nav/nav.jsx'); const Store = require('homebrewery/brew.store.js'); const Navbar = React.createClass({ getInitialState: function() { return { showNonChromeWarning : false, }; }, componentDidMount: function() { //const isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); this.setState({ showNonChromeWarning : !isChrome, }) }, renderChromeWarning : function(){ if(!this.state.showNonChromeWarning) return; return Optimized for Chrome If you are experiencing rendering issues, use Chrome instead }, render : function(){ return The Homebrewery {`v${Store.getVersion()}`} {/*this.renderChromeWarning()*/} {this.props.children} } }); module.exports = Navbar;