The paper

Although it is not a direct requirement to have no borders, it is for the purpose of having a fixed window size (which is fine on the MAC when fixed values are not adjustable, but Windows can always be resized).

The official documentation

const { BrowserWindow } = require('electron')
let win = new BrowserWindow({ width: 800.height: 600.frame: false })
win.show()
Copy the code

implementation

// background.js

win = new BrowserWindow({
  width: 800.height: 600.frame: false
});
Copy the code

The original link

  • My blog

Reference documentation

  • The official documentation