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.
17 lines
364 B
17 lines
364 B
const {app, BrowserWindow} = require('electron');
|
|
|
|
function createWindow() {
|
|
// 创建浏览器窗口
|
|
let win = new BrowserWindow({
|
|
width: 1024,
|
|
height: 600,
|
|
kiosk: false,
|
|
frame: false
|
|
});
|
|
|
|
// 加载index.html文件
|
|
win.loadFile('index.html')
|
|
win.webContents.openDevTools()
|
|
}
|
|
|
|
app.on('ready', createWindow);
|