Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Commit

Permalink
🎨 获取屏幕大小
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Feb 17, 2020
1 parent 240e75c commit 73115ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/electron/main.js
Expand Up @@ -7,8 +7,8 @@ const createWindow = () => {
// 创建浏览器窗口
const mainWindow = new BrowserWindow({
show: false,
width: screen.getPrimaryDisplay().workArea.width * 0.8,
height: screen.getPrimaryDisplay().workArea.height * 0.8,
width: screen.getPrimaryDisplay().size.width * 0.8,
height: screen.getPrimaryDisplay().size.height * 0.8,
webPreferences: {
nodeIntegration: true,
nativeWindowOpen: true,
Expand Down

0 comments on commit 73115ba

Please sign in to comment.