mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
ensure window exists for universal rendering
This commit is contained in:
parent
02cce1bfb8
commit
f3f4d60762
|
@ -3,8 +3,10 @@ import LogMonitorEntry from './LogMonitorEntry';
|
||||||
|
|
||||||
export default class LogMonitor {
|
export default class LogMonitor {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
window.addEventListener('keydown', ::this.handleKeyPress);
|
window.addEventListener('keydown', ::this.handleKeyPress);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
computedStates: PropTypes.array.isRequired,
|
computedStates: PropTypes.array.isRequired,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user