mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
7 lines
237 B
JavaScript
7 lines
237 B
JavaScript
const saveBtn = document.getElementById('save-dialog')
|
|
|
|
saveBtn.addEventListener('click', async () => {
|
|
const path = await window.electronAPI.saveDialog()
|
|
document.getElementById('file-saved').innerHTML = `Path selected: ${path}`
|
|
})
|