2023-08-08 10:35:59 +00:00
|
|
|
const { ipcRenderer } = require('electron')
|
2020-08-27 14:31:51 +00:00
|
|
|
|
|
|
|
const saveBtn = document.getElementById('save-dialog')
|
|
|
|
|
|
|
|
saveBtn.addEventListener('click', event => {
|
|
|
|
ipcRenderer.send('save-dialog')
|
|
|
|
})
|
|
|
|
|
|
|
|
ipcRenderer.on('saved-file', (event, path) => {
|
|
|
|
if (!path) path = 'No path'
|
|
|
|
document.getElementById('file-saved').innerHTML = `Path selected: ${path}`
|
|
|
|
})
|