forked from naskya/firefish
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>
|
</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);
|
||||||
|
|
Loading…
Reference in a new issue