mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-02 07:51:47 +01: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) {
|
||||
return getNormalizedAppVersion(await res.text());
|
||||
const text = await res.text();
|
||||
return getNormalizedAppVersion(text.trim());
|
||||
}
|
||||
|
||||
return Promise.reject({ status: res.status });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user