mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-06-09 01:20:04 +08:00
fix app.dock is undefined caused issue on windows
This commit is contained in:
@@ -9,7 +9,7 @@ export enum DOWNLOAD_ERROR_EXIT_CODE {
|
||||
}
|
||||
export const checkAndDownloadDependenciesForInit = async () => {
|
||||
process.on('disconnect', () => app.exit())
|
||||
app.dock.hide()
|
||||
app.dock?.hide()
|
||||
let pipe: null | net.Socket = null
|
||||
try {
|
||||
pipe = new net.Socket({ fd: 3 })
|
||||
|
||||
@@ -25,7 +25,7 @@ export const runAutoChat = async () => {
|
||||
closeBrowserWindow()
|
||||
app.exit()
|
||||
})
|
||||
app.dock.hide()
|
||||
app.dock?.hide()
|
||||
let pipe: null | net.Socket = null
|
||||
try {
|
||||
pipe = new net.Socket({ fd: 3 })
|
||||
|
||||
Reference in New Issue
Block a user