2023-08-14 08:04:29 +00:00
|
|
|
const { ipcRenderer } = require('electron')
|
2019-11-01 15:04:47 +00:00
|
|
|
|
|
|
|
const appInfoBtn = document.getElementById('app-info')
|
|
|
|
|
2023-08-14 08:04:29 +00:00
|
|
|
appInfoBtn.addEventListener('click', async () => {
|
|
|
|
const path = await ipcRenderer.invoke('get-app-path')
|
2019-11-01 15:04:47 +00:00
|
|
|
const message = `This app is located at: ${path}`
|
|
|
|
document.getElementById('got-app-info').innerHTML = message
|
|
|
|
})
|