Я использую угловой 6 с электроном.когда я компилирую окна, сборка не получается на весь экран.Я меняю метод в main.ts - это workarea, WorkAreaSize и т. Д.
, но это тоже не работает.
const electronScreen = screen;
const size = electronScreen.getPrimaryDisplay().workAreaSize;
console.log(size);
win = new BrowserWindow({
x: 0,
y: 0,
width: size.width,
height: size.height,
icon: __dirname + '/icon.ico',
resizable:false,
webPreferences: {
nodeIntegration:true,
webSecurity: false,
plugins: true
},
});