Skip to content

Commit

Permalink
Fix #4191: add defaults to avoid throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Jun 5, 2017
1 parent 5843342 commit 2f75a2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vector/platform/WebPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}

Expand Down

0 comments on commit 2f75a2c

Please sign in to comment.