remove hardcoded test value

This commit is contained in:
burnettk 2023-05-12 21:11:32 -04:00
parent 7a0958538f
commit 393f8a213c
1 changed files with 3 additions and 6 deletions

View File

@ -1,8 +1,10 @@
import { ObjectWithStringKeysAndValues } from '../interfaces';
const appVersionInfo = () => {
const versionInfoFromHtmlMetaTag = document.querySelector(
'meta[name="version-info"]'
);
let versionInfo: { [key: string]: string } = {};
let versionInfo: ObjectWithStringKeysAndValues = {};
if (versionInfoFromHtmlMetaTag) {
const versionInfoContentString =
versionInfoFromHtmlMetaTag.getAttribute('content');
@ -13,11 +15,6 @@ const appVersionInfo = () => {
versionInfo = JSON.parse(versionInfoContentString);
}
}
versionInfo = {
version: '1.0.0',
git_sha: 'sdkfjksd',
sure: '3',
};
return versionInfo;
};