mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-08 00:47:15 +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 () => {
|
export const checkAndDownloadDependenciesForInit = async () => {
|
||||||
process.on('disconnect', () => app.exit())
|
process.on('disconnect', () => app.exit())
|
||||||
app.dock.hide()
|
app.dock?.hide()
|
||||||
let pipe: null | net.Socket = null
|
let pipe: null | net.Socket = null
|
||||||
try {
|
try {
|
||||||
pipe = new net.Socket({ fd: 3 })
|
pipe = new net.Socket({ fd: 3 })
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const runAutoChat = async () => {
|
|||||||
closeBrowserWindow()
|
closeBrowserWindow()
|
||||||
app.exit()
|
app.exit()
|
||||||
})
|
})
|
||||||
app.dock.hide()
|
app.dock?.hide()
|
||||||
let pipe: null | net.Socket = null
|
let pipe: null | net.Socket = null
|
||||||
try {
|
try {
|
||||||
pipe = new net.Socket({ fd: 3 })
|
pipe = new net.Socket({ fd: 3 })
|
||||||
|
|||||||
Reference in New Issue
Block a user