fix: local software version being undefined
This commit is contained in:
parent
b164984abb
commit
e1bfea7141
1 changed files with 3 additions and 2 deletions
|
@ -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>([
|
||||
|
|
Loading…
Reference in a new issue