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