Skip to content

Commit

Permalink
fix(): Check for existence of window object
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdexta committed Aug 10, 2017
1 parent 956be4c commit 7609c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Provider} from 'react-redux'
import {createStore} from 'redux'
import boardReducer from '../reducers/BoardReducer'

let store = createStore(boardReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
let store = createStore(boardReducer, window && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())

export default class Board extends Component {

Expand Down

0 comments on commit 7609c88

Please sign in to comment.