diff --git a/src/vector/platform/WebPlatform.js b/src/vector/platform/WebPlatform.js index 8397a7f7..b9e941e6 100644 --- a/src/vector/platform/WebPlatform.js +++ b/src/vector/platform/WebPlatform.js @@ -160,8 +160,8 @@ export default class WebPlatform extends VectorBasePlatform { const appName = u.format(); const ua = new UAParser(); - const browserName = ua.getBrowser().name; - const osName = ua.getOS().name; + const browserName = ua.getBrowser().name || "unknown browser"; + const osName = ua.getOS().name || "unknown os"; return _t('%(appName)s via %(browserName)s on %(osName)s', {appName: appName, browserName: browserName, osName: osName}); }