0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 04:42:41 +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() {
this.checkWarnings();
//TODO: Setup event for window zoom
window.addEventListner('onresize', this.checkWarnings);
},
componentWillUnmount: function() {
window.removeEventListener('onresize', this.checkWarnings);
},
warnings : {
chrome : function(){
@@ -21,7 +22,10 @@ const RenderWarnings = React.createClass({
if(!isChrome){
return <li key='chrome'>
<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>;
}
},