2023-08-28 11:23:10 +00:00
|
|
|
const { ipcRenderer } = require('electron/renderer')
|
2020-01-13 06:35:56 +00:00
|
|
|
|
|
|
|
const newWindowBtn = document.getElementById('new-window')
|
|
|
|
|
|
|
|
newWindowBtn.addEventListener('click', (event) => {
|
2020-09-14 17:36:54 +00:00
|
|
|
const url = 'https://electronjs.org'
|
2023-04-05 13:42:20 +00:00
|
|
|
ipcRenderer.send('new-window', { url, width: 400, height: 320 })
|
2020-01-13 06:35:56 +00:00
|
|
|
})
|