updated VersionIndicator.tsx

This commit is contained in:
Marco
2024-03-22 14:15:50 +01:00
committed by GitHub
parent 193ac9f043
commit 52862156b9

View File

@@ -11,7 +11,11 @@ const VersionIndicator: React.FC = () => {
const { pushMessage } = useToast() const { pushMessage } = useToast()
const fetchVersion = async () => { const fetchVersion = async () => {
const res = await fetch(`${serverAddr}/api/v1/version`) const res = await fetch(`${serverAddr}/api/v1/version`, {
headers: {
'X-Authentication': localStorage.getItem('token') ?? ''
}
})
if (!res.ok) { if (!res.ok) {
return pushMessage(await res.text(), 'error') return pushMessage(await res.text(), 'error')