mirror of
https://example.com
synced 2024-11-25 10:16:40 +09:00
fix: local software version being undefined
This commit is contained in:
parent
0a8cf9b51c
commit
de18274a75
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue