|
|
@ -1,9 +1,9 @@ |
|
|
|
const {app, BrowserWindow,screen } = require('electron'); |
|
|
|
|
|
|
|
function createWindow() { |
|
|
|
let size = screen.getPrimaryDisplay().workAreaSize |
|
|
|
let width = parseInt(size.width * 1) |
|
|
|
let height = parseInt(size.height * 1) |
|
|
|
let size = screen.getPrimaryDisplay().workAreaSize; |
|
|
|
let width = parseInt(size.width * 1); |
|
|
|
let height = parseInt(size.height * 1); |
|
|
|
|
|
|
|
|
|
|
|
// 创建浏览器窗口
|
|
|
@ -15,8 +15,8 @@ function createWindow() { |
|
|
|
}); |
|
|
|
|
|
|
|
// 加载index.html文件
|
|
|
|
win.loadFile('index.html') |
|
|
|
win.webContents.openDevTools() |
|
|
|
win.loadFile('index.html'); |
|
|
|
// win.webContents.openDevTools()
|
|
|
|
} |
|
|
|
|
|
|
|
app.on('ready', createWindow); |