Skip to content

Commit 75b0005

Browse files
author
Ray Cohen
committed
move variable declaration back to its original position
1 parent 05ecb02 commit 75b0005

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/Media.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ class Media extends React.Component {
2929
updateMatches = () => this.setState({ matches: this.mediaQueryList.matches });
3030

3131
componentWillMount() {
32-
let { query } = this.props;
33-
3432
if (typeof window !== "object") return;
3533

34+
let { query } = this.props;
3635
const targetWindow = this.props.targetWindow || window;
3736

3837
if (!targetWindow.matchMedia) {

0 commit comments

Comments
 (0)