mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-26 13:00:09 +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 { release } from 'os'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
|
|
||||||
const { isPackaged } = app
|
|
||||||
|
|
||||||
// Disable GPU Acceleration for Windows 7
|
// Disable GPU Acceleration for Windows 7
|
||||||
if (release().startsWith('6.1')) app.disableHardwareAcceleration()
|
if (release().startsWith('6.1')) app.disableHardwareAcceleration()
|
||||||
|
|
||||||
@ -48,7 +46,7 @@ async function createWindow() {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
if (isPackaged) {
|
if (app.isPackaged) {
|
||||||
win.loadFile(indexHtml)
|
win.loadFile(indexHtml)
|
||||||
} else {
|
} else {
|
||||||
win.loadURL(url)
|
win.loadURL(url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user