"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/fiddles/windows/manage-windows/create-frameless-window/renderer.js" between
electron-11.2.3.tar.gz and electron-11.3.0.tar.gz

About: Electron is a framework for creating native cross platform applications with web technologies like JavaScript, HTML, and CSS.

renderer.js  (electron-11.2.3):renderer.js  (electron-11.3.0)
const { BrowserWindow } = require('electron').remote const { ipcRenderer } = require('electron')
const newWindowBtn = document.getElementById('frameless-window') const newWindowBtn = document.getElementById('frameless-window')
newWindowBtn.addEventListener('click', (event) => { newWindowBtn.addEventListener('click', () => {
let win = new BrowserWindow({ frame: false }) const url = 'data:text/html,<h2>Hello World!</h2><a id="close" href="javascrip
t:window.close()">Close this Window</a>'
win.on('close', () => { win = null }) ipcRenderer.send('create-frameless-window', { url })
win.loadURL('data:text/html,<h2>Hello World!</h2><a id="close" href="javascrip
t:window.close()">Close this Window</a>')
win.show()
}) })
 End of changes. 2 change blocks. 
9 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)