chore: revert
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user