chore: revert

This commit is contained in:
草鞋没号 2022-07-27 07:37:41 +08:00 committed by GitHub
parent 0d1fe635d3
commit 039c272fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)