Answers for "electron make window not selectable"

CSS
0

electron draggable

button {
  -webkit-app-region: no-drag;
}
Posted by: Guest on August-02-2020
1

electron new window

const electron = require('electron')
const BrowserWindow = electron.remote.BrowserWindow

$( "#target" ).click(function() {
	let win = new BrowserWindow({ show: false })
	win.on('close', function () { win = null })
	win.loadURL("github.com")
	win.once('ready-to-show', () => {
  		win.show()
	})
});
Posted by: Guest on April-15-2020

Browse Popular Code Answers by Language