mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-08 17:09:07 +08:00
fix after approve button clicked, notice window is not closed
This commit is contained in:
@@ -2,6 +2,7 @@ import fs from 'fs'
|
|||||||
import os from 'os'
|
import os from 'os'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import buildInfo from '../../common/build-info.json'
|
import buildInfo from '../../common/build-info.json'
|
||||||
|
import { ensureStorageFileExist } from '@geekgeekrun/geek-auto-start-chat-with-boss/runtime-file-utils.mjs'
|
||||||
|
|
||||||
export const firstLaunchNoticeApproveFlagPath = path.join(
|
export const firstLaunchNoticeApproveFlagPath = path.join(
|
||||||
os.homedir(),
|
os.homedir(),
|
||||||
@@ -10,5 +11,7 @@ export const firstLaunchNoticeApproveFlagPath = path.join(
|
|||||||
)
|
)
|
||||||
|
|
||||||
export const isFirstLaunchNoticeApproveFlagExist = () => fs.existsSync(firstLaunchNoticeApproveFlagPath)
|
export const isFirstLaunchNoticeApproveFlagExist = () => fs.existsSync(firstLaunchNoticeApproveFlagPath)
|
||||||
export const createFirstLaunchNoticeApproveFlag = () =>
|
export const createFirstLaunchNoticeApproveFlag = () => {
|
||||||
|
ensureStorageFileExist()
|
||||||
fs.writeFileSync(firstLaunchNoticeApproveFlagPath, buildInfo.version)
|
fs.writeFileSync(firstLaunchNoticeApproveFlagPath, buildInfo.version)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user