forked from mirrors/misskey
fix: redirect beta/alpha/rc "what's new" button to GitHub releases page (#17347)
* Initial plan * fix: redirect beta/alpha/rc update info button to GitHub releases page Agent-Logs-Url: https://github.com/misskey-dev/misskey/sessions/4ac22dd9-13dd-4ef2-a6f7-d68cfda4a19f Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
parent
b45f18cd14
commit
21f51be5b7
1 changed files with 5 additions and 1 deletions
|
|
@ -34,7 +34,11 @@ const isBeta = version.includes('-beta') || version.includes('-alpha') || versio
|
|||
|
||||
function whatIsNew() {
|
||||
modal.value?.close();
|
||||
window.open(`https://misskey-hub.net/docs/releases/#_${version.replace(/\./g, '')}`, '_blank');
|
||||
if (isBeta) {
|
||||
window.open(`https://github.com/misskey-dev/misskey/releases/tag/${version}`, '_blank');
|
||||
} else {
|
||||
window.open(`https://misskey-hub.net/docs/releases/#_${version.replace(/\./g, '')}`, '_blank');
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue