mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-14 12:52:42 +00:00
added listner for zoom event
This commit is contained in:
@@ -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>;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user