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