1
0
Fork 1
mirror of https://example.com synced 2024-11-25 12:36:46 +09:00

fix: local software version being undefined

This commit is contained in:
naskya 2023-07-21 13:14:47 +00:00
parent 0a8cf9b51c
commit de18274a75
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -13,7 +13,7 @@
</template>
<script lang="ts" setup>
import { instanceName } from "@/config";
import { instanceName, version } from "@/config";
import { instance as Instance } from "@/instance";
import { getProxiedImageUrlNullable } from "@/scripts/media-proxy";
@ -38,8 +38,8 @@ const instance = props.instance ?? {
'meta[name="theme-color-orig"]',
) as HTMLMetaElement
)?.content,
softwareName: Instance.softwareName || "Firefish",
softwareVersion: Instance.softwareVersion,
softwareName: Instance.softwareName ?? "Firefish",
softwareVersion: version,
};
const capitalize = (s: string) => s && s[0].toUpperCase() + s.slice(1);