Update config.js

环境变量兼容一下狗日的windows
master
宇天 2022-04-13 22:58:00 +08:00 committed by GitHub
parent c097ec67a5
commit 40dec3a830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -508,4 +508,4 @@ export const SOLAR_FESTIVALS = {
'12.25': '圣诞节' '12.25': '圣诞节'
} }
export const CACHE_FILE = join(process.env.HOME, '.festivals.json') export const CACHE_FILE = join(process.env.HOME || process.env.LOCALAPPDATA, '.festivals.json')