no frame electron

JavaScript
const mainWindow = new BrowserWindow({
  width: 1600,
  height: 900,
  frame: false,
});button {
  -webkit-app-region: no-drag;
}<body style="-webkit-app-region: drag">
</body>
Source

Also in JavaScript: