forked from cybrespace/pinafore
		
	fix warning about max EventEmitter listeners (#100)
This commit is contained in:
		
							parent
							
								
									1d67a2ad0c
								
							
						
					
					
						commit
						a208e5dedb
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2,6 +2,10 @@ import EventEmitter from 'events'
 | 
			
		|||
 | 
			
		||||
const eventBus = new EventEmitter()
 | 
			
		||||
 | 
			
		||||
// we need enough 'postedStatus' listeners for each
 | 
			
		||||
// visible status in a timeline
 | 
			
		||||
eventBus.setMaxListeners(100)
 | 
			
		||||
 | 
			
		||||
if (process.browser && process.env.NODE_ENV !== 'production') {
 | 
			
		||||
  window.eventBus = eventBus
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue