From 039c272fb252fa1b2542e82ccf89cb42bd4b3806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Wed, 27 Jul 2022 07:37:41 +0800 Subject: [PATCH] chore: revert --- electron/main/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 230129a..70f0e30 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -2,8 +2,6 @@ import { app, BrowserWindow, shell, ipcMain } from 'electron' import { release } from 'os' import { join } from 'path' -const { isPackaged } = app - // Disable GPU Acceleration for Windows 7 if (release().startsWith('6.1')) app.disableHardwareAcceleration() @@ -48,7 +46,7 @@ async function createWindow() { }, }) - if (isPackaged) { + if (app.isPackaged) { win.loadFile(indexHtml) } else { win.loadURL(url)