mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-26 04:40:10 +08:00
chore: revert
This commit is contained in:
parent
0d1fe635d3
commit
039c272fb2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user