fix: local software version being undefined

This commit is contained in:
naskya 2023-07-21 13:14:47 +00:00 committed by ThatOneCalculator
parent b164984abb
commit e1bfea7141
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -11,7 +11,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";
@ -35,7 +35,8 @@ const instance = props.instance ?? {
'meta[name="theme-color-orig"]',
) as HTMLMetaElement
)?.content,
softwareName: Instance.softwareName || "Firefish",
softwareName: Instance.softwareName ?? "Firefish",
softwareVersion: version,
};
const commonNames = new Map<string, string>([