6 lines
218 B
JavaScript
6 lines
218 B
JavaScript
const setButton = document.getElementById('btn')
|
|
const titleInput = document.getElementById('title')
|
|
setButton.addEventListener('click', () => {
|
|
const title = titleInput.value
|
|
window.electronAPI.setTitle(title)
|
|
})
|