Correctly append OS name

This commit is contained in:
Pavel Djundik 2017-08-08 22:46:55 +03:00
parent ff85b616f0
commit 25ac4d9e69

View File

@ -307,7 +307,7 @@ Client.prototype.updateSession = function(token, ip, request) {
}
if (agent.os.name.length) {
friendlyAgent = ` on ${agent.os.name} ${agent.os.version}`;
friendlyAgent += ` on ${agent.os.name} ${agent.os.version}`;
}
client.config.sessions[token] = {