树莓派ouxuanac启动器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
524 B

  1. const {app, BrowserWindow,screen } = require('electron');
  2. function createWindow() {
  3. let size = screen.getPrimaryDisplay().workAreaSize;
  4. let width = parseInt(size.width * 1);
  5. let height = parseInt(size.height * 1);
  6. // 创建浏览器窗口
  7. let win = new BrowserWindow({
  8. width: width,
  9. height: height,
  10. kiosk: false,
  11. frame: false
  12. });
  13. // 加载index.html文件
  14. win.loadFile('index.html');
  15. // win.webContents.openDevTools()
  16. }
  17. app.on('ready', createWindow);