mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
7 lines
219 B
JavaScript
7 lines
219 B
JavaScript
const newWindowBtn = document.getElementById('new-window')
|
|
|
|
newWindowBtn.addEventListener('click', (event) => {
|
|
const url = 'https://electronjs.org'
|
|
window.electronAPI.newWindow({ url, width: 400, height: 320 })
|
|
})
|