Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
修复窗口太小可能不正确的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KinoriN committed Oct 13, 2019
1 parent 16f0df5 commit 9e3be2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions electron/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ const createMainWindow = (): BrowserWindow => {
nodeIntegration: true,
},
});
win.setResizable(false);
win.webContents.on('did-finish-load', () => {
win.setResizable(false);
})
// win.loadURL('http://localhost:4200');
win.webContents.openDevTools();
// win.webContents.openDevTools();
win.loadURL(`file://${__dirname}/../../app/index.html`);
win.setMenu(createMainWinMenu(app, playerObjMap));
win.on('close', () => {
Expand Down

0 comments on commit 9e3be2f

Please sign in to comment.