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

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

10 lines
334 B
JavaScript
Raw Normal View History

const { ipcRenderer } = require('electron/renderer')
const appInfoBtn = document.getElementById('app-info')
appInfoBtn.addEventListener('click', async () => {
const path = await ipcRenderer.invoke('get-app-path')
const message = `This app is located at: ${path}`
document.getElementById('got-app-info').innerHTML = message
})