Automatically check for server updates (#489)

This commit is contained in:
schroda
2023-12-09 23:20:52 +01:00
committed by GitHub
parent 78310496aa
commit 9cb72243d6
4 changed files with 113 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ import { makeToast } from '@/components/util/Toast.tsx';
type AboutServer = GetAboutQuery['aboutServer'];
const getVersion = (aboutServer: AboutServer) => {
export const getVersion = (aboutServer: AboutServer) => {
if (aboutServer.buildType === 'Stable') return `${aboutServer.version}`;
return `${aboutServer.version}-${aboutServer.revision}`;
};