mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-27 16:00:09 +08:00
refactor(updater): drop the never-matching break-change gate (#8742)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { fetchCacheData, setCacheData, useQuery } from '@/services/query-client'
|
||||
import { checkUpdateSafe } from '@/services/update'
|
||||
import { checkForUpdate } from '@/services/update'
|
||||
|
||||
import { useVerge } from './use-verge'
|
||||
|
||||
@@ -26,7 +26,7 @@ export const useUpdate = (enabled: boolean = true) => {
|
||||
const shouldCheck = enabled && auto_check_update !== false
|
||||
|
||||
const fetchUpdate = async () => {
|
||||
const result = await checkUpdateSafe()
|
||||
const result = await checkForUpdate()
|
||||
updateLastCheckTime()
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user