mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Trim /version file response (#23473)
This commit is contained in:
parent
2ef6abbfb8
commit
66798c75b5
@ -93,7 +93,8 @@ export default class WebPlatform extends VectorBasePlatform {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
return getNormalizedAppVersion(await res.text());
|
const text = await res.text();
|
||||||
|
return getNormalizedAppVersion(text.trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.reject({ status: res.status });
|
return Promise.reject({ status: res.status });
|
||||||
|
Loading…
Reference in New Issue
Block a user