Trim /version file response (#23473)
This commit is contained in:
parent
2ef6abbfb8
commit
66798c75b5
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue