We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ecb02 commit 75b0005Copy full SHA for 75b0005
modules/Media.js
@@ -29,10 +29,9 @@ class Media extends React.Component {
29
updateMatches = () => this.setState({ matches: this.mediaQueryList.matches });
30
31
componentWillMount() {
32
- let { query } = this.props;
33
-
34
if (typeof window !== "object") return;
35
+ let { query } = this.props;
36
const targetWindow = this.props.targetWindow || window;
37
38
if (!targetWindow.matchMedia) {
0 commit comments