Skip to content

Commit

Permalink
fix(): Use typeof(window) to check if being used in non browser envir…
Browse files Browse the repository at this point in the history
…onments

#15
  • Loading branch information
rcdexta committed Aug 10, 2017
1 parent 7609c88 commit ae0031e
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 && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
let store = createStore(boardReducer, typeof(window) !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())

export default class Board extends Component {

Expand Down

0 comments on commit ae0031e

Please sign in to comment.