mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-26 03:23:55 +03:00
Merge pull request #50 from iamdustan/make-sure-window-exists-for-server-rendering
ensure window exists for universal rendering
This commit is contained in:
commit
b1367c61d4
|
@ -3,7 +3,9 @@ import LogMonitorEntry from './LogMonitorEntry';
|
||||||
|
|
||||||
export default class LogMonitor {
|
export default class LogMonitor {
|
||||||
constructor() {
|
constructor() {
|
||||||
window.addEventListener('keydown', ::this.handleKeyPress);
|
if (typeof window !== 'undefined') {
|
||||||
|
window.addEventListener('keydown', ::this.handleKeyPress);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user