mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 00:16:51 +00:00
Improve Minecraft versions in title
This commit is contained in:
@@ -40,7 +40,9 @@ export function TitleProvider({ children }: { children: ComponentChildren }) {
|
||||
titleSuffix = ` - ${suffix}`
|
||||
}
|
||||
if (!(versionIds?.length === 0)) {
|
||||
const titleVersions = versions.map(v => v.id).slice(-VERSIONS_IN_TITLE)
|
||||
const titleVersions = versions.map(v => v.id)
|
||||
.filter((v, _, arr) => v.length === 4 || arr.length <= 3)
|
||||
.slice(-VERSIONS_IN_TITLE)
|
||||
titleSuffix = ` - Minecraft ${titleVersions.join(', ')}`
|
||||
}
|
||||
document.title = title + titleSuffix
|
||||
|
||||
Reference in New Issue
Block a user