From 9e3be2f5fa9f587c88fd8f8667659f1c4ec665d9 Mon Sep 17 00:00:00 2001 From: kinori Date: Mon, 14 Oct 2019 01:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AA=97=E5=8F=A3=E5=A4=AA?= =?UTF-8?q?=E5=B0=8F=E5=8F=AF=E8=83=BD=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/electron/src/main.ts b/electron/src/main.ts index a6071a4..3010658 100644 --- a/electron/src/main.ts +++ b/electron/src/main.ts @@ -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', () => {