2020-09-14 17:36:54 +00:00
|
|
|
const { ipcRenderer } = require('electron')
|
2019-11-13 05:49:13 +00:00
|
|
|
|
|
|
|
const newWindowBtn = document.getElementById('frameless-window')
|
|
|
|
|
2020-09-14 17:36:54 +00:00
|
|
|
newWindowBtn.addEventListener('click', () => {
|
|
|
|
const url = 'data:text/html,<h2>Hello World!</h2><a id="close" href="javascript:window.close()">Close this Window</a>'
|
|
|
|
ipcRenderer.send('create-frameless-window', { url })
|
2019-11-13 05:49:13 +00:00
|
|
|
})
|