mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
6 lines
143 B
JavaScript
6 lines
143 B
JavaScript
const { app, ipcMain } = require('electron')
|
|
|
|
ipcMain.on('get-app-path', (event) => {
|
|
event.sender.send('got-app-path', app.getAppPath())
|
|
})
|