diff --git a/src/vector/platform/WebPlatform.ts b/src/vector/platform/WebPlatform.ts index 2800f27a4c..578c0163c3 100644 --- a/src/vector/platform/WebPlatform.ts +++ b/src/vector/platform/WebPlatform.ts @@ -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 });