From a0db5fd388c598ce115125c517db177bcf5b70de Mon Sep 17 00:00:00 2001 From: geekgeekrun Date: Wed, 2 Oct 2024 12:55:00 +0800 Subject: [PATCH] hide dock icon after launch in launchBossSite --- packages/ui/src/main/flow/LAUNCH_BOSS_SITE/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ui/src/main/flow/LAUNCH_BOSS_SITE/index.ts b/packages/ui/src/main/flow/LAUNCH_BOSS_SITE/index.ts index af60096..097ba38 100644 --- a/packages/ui/src/main/flow/LAUNCH_BOSS_SITE/index.ts +++ b/packages/ui/src/main/flow/LAUNCH_BOSS_SITE/index.ts @@ -1,3 +1,4 @@ +import { app } from 'electron' import { initPuppeteer } from '@geekgeekrun/geek-auto-start-chat-with-boss/index.mjs' import extractZip from 'extract-zip' import { readStorageFile } from '@geekgeekrun/geek-auto-start-chat-with-boss/runtime-file-utils.mjs' @@ -101,6 +102,7 @@ const attachRequestsListener = async (target: Target) => { } export async function launchBossSite() { + app.dock?.hide() if (!fs.existsSync(path.join(editThisCookieExtensionPath, 'manifest.json'))) { await extractZip(await getEditThisCookieZipPath(), { dir: extensionDir