migrate daemon to new daemon

This commit is contained in:
geekgeekrun
2026-01-07 23:21:05 +08:00
parent 18af99f10e
commit 8739a70277
13 changed files with 248 additions and 331 deletions
@@ -1494,7 +1494,10 @@ export async function closeBrowserWindow () {
browser?.close()
const browserProcess = browser?.process()
if (browserProcess) {
process.kill(browserProcess.pid)
try {
process.kill(browserProcess.pid)
}
catch {}
}
browser = null
page = null