mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-31 07:57:39 +03:00 
			
		
		
		
	ensure window exists for universal rendering
This commit is contained in:
		
							parent
							
								
									02cce1bfb8
								
							
						
					
					
						commit
						f3f4d60762
					
				|  | @ -3,7 +3,9 @@ import LogMonitorEntry from './LogMonitorEntry'; | |||
| 
 | ||||
| export default class LogMonitor { | ||||
|   constructor() { | ||||
|     window.addEventListener('keydown', ::this.handleKeyPress); | ||||
|     if (typeof window !== 'undefined') { | ||||
|       window.addEventListener('keydown', ::this.handleKeyPress); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   static propTypes = { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user