electron/docs/fiddles/native-ui/dialogs/save-dialog/renderer.js

7 lines
237 B
JavaScript
Raw Normal View History

2020-08-27 14:31:51 +00:00
const saveBtn = document.getElementById('save-dialog')
saveBtn.addEventListener('click', async () => {
const path = await window.electronAPI.saveDialog()
2020-08-27 14:31:51 +00:00
document.getElementById('file-saved').innerHTML = `Path selected: ${path}`
})