0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-14 15:03:07 +00:00

added listner for zoom event

This commit is contained in:
Scott Tolksdorf
2017-01-15 11:38:22 -05:00
parent 9b936f42f3
commit 5bfa195dc7

View File

@@ -11,9 +11,10 @@ const RenderWarnings = React.createClass({
}, },
componentDidMount: function() { componentDidMount: function() {
this.checkWarnings(); this.checkWarnings();
window.addEventListner('onresize', this.checkWarnings);
//TODO: Setup event for window zoom },
componentWillUnmount: function() {
window.removeEventListener('onresize', this.checkWarnings);
}, },
warnings : { warnings : {
chrome : function(){ chrome : function(){
@@ -21,7 +22,10 @@ const RenderWarnings = React.createClass({
if(!isChrome){ if(!isChrome){
return <li key='chrome'> return <li key='chrome'>
<em>Built for Chrome </em> <br /> <em>Built for Chrome </em> <br />
Other browsers do not support key features this site uses. Other browsers do not support
<a target='_blank' href='https://developer.mozilla.org/en-US/docs/Web/CSS/column-span#Browser_compatibility'>
key features
</a> this site uses.
</li>; </li>;
} }
}, },