docs: add app information example (#20487)
* docs: add app information example * Code review changes * Remove demo-control css class, link href change
This commit is contained in:
		
					parent
					
						
							
								eaf2c61bef
							
						
					
				
			
			
				commit
				
					
						06285f0bf1
					
				
			
		
					 4 changed files with 49 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
const {app, ipcMain} = require('electron')
 | 
			
		||||
 | 
			
		||||
ipcMain.on('get-app-path', (event) => {
 | 
			
		||||
  event.sender.send('got-app-path', app.getAppPath())
 | 
			
		||||
})
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue