mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-09 09:27:07 +08:00
hide dock icon after launch in launchBossSite
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { app } from 'electron'
|
||||||
import { initPuppeteer } from '@geekgeekrun/geek-auto-start-chat-with-boss/index.mjs'
|
import { initPuppeteer } from '@geekgeekrun/geek-auto-start-chat-with-boss/index.mjs'
|
||||||
import extractZip from 'extract-zip'
|
import extractZip from 'extract-zip'
|
||||||
import { readStorageFile } from '@geekgeekrun/geek-auto-start-chat-with-boss/runtime-file-utils.mjs'
|
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() {
|
export async function launchBossSite() {
|
||||||
|
app.dock?.hide()
|
||||||
if (!fs.existsSync(path.join(editThisCookieExtensionPath, 'manifest.json'))) {
|
if (!fs.existsSync(path.join(editThisCookieExtensionPath, 'manifest.json'))) {
|
||||||
await extractZip(await getEditThisCookieZipPath(), {
|
await extractZip(await getEditThisCookieZipPath(), {
|
||||||
dir: extensionDir
|
dir: extensionDir
|
||||||
|
|||||||
Reference in New Issue
Block a user