mirror of
https://github.com/kokonect-link/cherrypick
synced 2025-01-24 10:43:58 +09:00
parent
e4b95b2d7a
commit
0428fb20b2
@ -107,13 +107,17 @@ async function init() {
|
||||
skipVersion.value = false;
|
||||
await misskeyApi('admin/update-meta', { skipVersion: skipVersion.value });
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch CherryPick releases:', error);
|
||||
}
|
||||
|
||||
try {
|
||||
// Misskey Releases Fetch
|
||||
const misskeyResponse = await fetch('https://api.github.com/repos/misskey-dev/misskey/releases');
|
||||
const misskeyData = await misskeyResponse.json();
|
||||
releasesMisskey.value = meta.enableReceivePrerelease ? misskeyData : misskeyData.filter(x => !x.prerelease);
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch releases:', error);
|
||||
console.error('Failed to fetch Misskey releases:', error);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user