Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xianfei committed Oct 23, 2023
1 parent dd16c90 commit 4ef0195
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ function createModelViewerWindow(args) {
titleBarStyle: platform === "darwin" ? "hiddenInset" : "hidden",
autoHideMenuBar: true,
show: false,
width: 820,
height: 540,
...addtionalArgs,
titleBarOverlay: {
color: args.backgroundColor,
Expand All @@ -332,7 +334,7 @@ function createModelViewerWindow(args) {
viewer.webContents.once('dom-ready', () => {
viewer.show();
viewer.loadFile("modelview/modelview.html");
viewer.setSize(820*screen.getPrimaryDisplay().scaleFactor,540*screen.getPrimaryDisplay().scaleFactor)
if (args.useGlass) viewer.setSize(820*screen.getPrimaryDisplay().scaleFactor,540*screen.getPrimaryDisplay().scaleFactor)
});

// Open the DevTools.
Expand Down

0 comments on commit 4ef0195

Please sign in to comment.