const { BrowserWindow } = require('electron').remote const newWindowBtn = document.getElementById('frameless-window') newWindowBtn.addEventListener('click', (event) => { let win = new BrowserWindow({ frame: false }) win.on('close', () => { win = null }) win.loadURL('data:text/html,

Hello World!

Close this Window') win.show() })