Beta #30

Merged
didirus merged 990 commits from beta into release 2026-06-20 05:06:18 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit bcce7e28fd - Show all commits
@@ -63,7 +63,11 @@ export function useCdnDownloadContext() {
})
function createProjectDownloadUrl(originalUrl: string, context?: DownloadContext): string {
if (!originalUrl.startsWith('https://cdn.modrinth.com')) {
if (
typeof originalUrl !== 'string' ||
!originalUrl ||
!originalUrl.startsWith('https://cdn.modrinth.com')
) {
return originalUrl
}
@@ -136,7 +136,7 @@
</ButtonStyled>
</div>
<div v-else class="input-group mt-2">
<ButtonStyled v-if="primaryFile && !currentMember" color="brand">
<ButtonStyled v-if="primaryFile?.url && !currentMember" color="brand">
<a
v-tooltip="primaryFile.filename + ' (' + formatBytes(primaryFile.size) + ')'"
:href="decoratedPrimaryFileUrl"