You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			14 lines
		
	
	
		
			337 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			337 B
		
	
	
	
		
			TypeScript
		
	
| 
											4 years ago
										 | import { ipcRenderer } from 'electron'; | ||
| 
											8 years ago
										 | 
 | ||
| 
											4 years ago
										 | export async function deleteAllLogs() { | ||
| 
											8 years ago
										 |   return new Promise((resolve, reject) => { | ||
|  |     ipcRenderer.once('delete-all-logs-complete', resolve); | ||
|  | 
 | ||
|  |     setTimeout(() => { | ||
|  |       reject(new Error('Request to delete all logs timed out')); | ||
|  |     }, 5000); | ||
|  | 
 | ||
|  |     ipcRenderer.send('delete-all-logs'); | ||
|  |   }); | ||
|  | } |