0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 06:32:39 +00:00

Remove chrome warnings from after rebase

This commit is contained in:
Scott Tolksdorf
2017-01-22 12:55:00 -05:00
parent 894e345a44
commit 1aa79b32d9
3 changed files with 18 additions and 42 deletions

View File

@@ -5,26 +5,6 @@ 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 <Nav.item className='warning' icon='fa-exclamation-triangle'>
Optimized for Chrome
<div className='dropdown'>
If you are experiencing rendering issues, use Chrome instead
</div>
</Nav.item>
},
render : function(){
return <Nav.base>
<Nav.section>
@@ -33,8 +13,6 @@ const Navbar = React.createClass({
<div>The Homebrewery</div>
</Nav.item>
<Nav.item>{`v${Store.getVersion()}`}</Nav.item>
{/*this.renderChromeWarning()*/}
</Nav.section>
{this.props.children}
</Nav.base>