electron/docs/fiddles/system/system-app-user-information/app-information/main.js
Amarnath Karthi 06285f0bf1 docs: add app information example (#20487)
* docs: add app information example

* Code review changes

* Remove demo-control css class, link href change
2019-11-01 08:04:47 -07:00

5 lines
No EOL
140 B
JavaScript

const {app, ipcMain} = require('electron')
ipcMain.on('get-app-path', (event) => {
event.sender.send('got-app-path', app.getAppPath())
})