electron/docs/fiddles/system/system-app-user-information/app-information/main.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
140 B
JavaScript
Raw Normal View History

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