mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
8a6b940520
@ -160,8 +160,8 @@ export default class WebPlatform extends VectorBasePlatform {
|
|||||||
const appName = u.format();
|
const appName = u.format();
|
||||||
|
|
||||||
const ua = new UAParser();
|
const ua = new UAParser();
|
||||||
const browserName = ua.getBrowser().name;
|
const browserName = ua.getBrowser().name || "unknown browser";
|
||||||
const osName = ua.getOS().name;
|
const osName = ua.getOS().name || "unknown os";
|
||||||
return _t('%(appName)s via %(browserName)s on %(osName)s', {appName: appName, browserName: browserName, osName: osName});
|
return _t('%(appName)s via %(browserName)s on %(osName)s', {appName: appName, browserName: browserName, osName: osName});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user