fix(1.0): update github plugin 404 (#13014)
This commit is contained in:
parent
c966bf1474
commit
ef1f429437
@ -100,7 +100,9 @@ const DetailHeader = ({
|
||||
return
|
||||
}
|
||||
|
||||
const fetchedReleases = await fetchReleases(author, name)
|
||||
const owner = meta!.repo.split('/')[0] || author
|
||||
const repo = meta!.repo.split('/')[1] || name
|
||||
const fetchedReleases = await fetchReleases(owner, repo)
|
||||
if (fetchedReleases.length === 0) return
|
||||
const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version)
|
||||
Toast.notify(toastProps)
|
||||
|
Loading…
Reference in New Issue
Block a user