Merge pull request #2340 from dgw/no-undefined-os-version
Prevent "undefined" OS version in session list
This commit is contained in:
commit
7cbc0dc047
@ -316,7 +316,11 @@ Client.prototype.updateSession = function(token, ip, request) {
|
||||
}
|
||||
|
||||
if (agent.os.name) {
|
||||
friendlyAgent += ` on ${agent.os.name} ${agent.os.version}`;
|
||||
friendlyAgent += ` on ${agent.os.name}`;
|
||||
|
||||
if (agent.os.version) {
|
||||
friendlyAgent += ` ${agent.os.version}`;
|
||||
}
|
||||
}
|
||||
|
||||
client.config.sessions[token] = _.assign(client.config.sessions[token], {
|
||||
|
Loading…
Reference in New Issue
Block a user