提交 1b46904b 编写于 作者: 徐晓伟's avatar 徐晓伟

优化浏览器启动窗口

上级 37342233
......@@ -14,6 +14,7 @@ protocol.registerSchemesAsPrivileged([
async function createWindow() {
// Create the browser window.
const win = new BrowserWindow({
show: false,
width: 800,
height: 600,
webPreferences: {
......@@ -35,6 +36,10 @@ async function createWindow() {
// Load the index.html when not in development
win.loadURL('app://./index.html')
}
win.once('ready-to-show', () => {
win.show()
})
}
// Quit when all windows are closed.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册