diff --git a/lib/helper.js b/lib/helper.js index 80cbd5557..f414dceef 100644 --- a/lib/helper.js +++ b/lib/helper.js @@ -6,7 +6,8 @@ var Promise = require('bluebird') exports.browserFullNameToShort = function (fullName) { var agent = useragent.parse(fullName) - return agent.family !== 'Other' ? agent.toAgent() + ' (' + agent.os + ')' : fullName + var isKnown = agent.family !== 'Other' && agent.os.family !== 'Other' + return isKnown ? agent.toAgent() + ' (' + agent.os + ')' : fullName } exports.isDefined = function (value) {