From 149b525826385418bee0919cca389a0e9b72cd4f Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 13 Apr 2018 14:09:25 -0700 Subject: [PATCH] Fixed mouse wheel in remote desktop --- meshagent.js | 2 +- package.json | 2 +- views/default.handlebars | 47 +++++++++++++++------------------------- 3 files changed, 19 insertions(+), 32 deletions(-) diff --git a/meshagent.js b/meshagent.js index 1ba96572..6d60182f 100644 --- a/meshagent.js +++ b/meshagent.js @@ -48,7 +48,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { // Other clean up may be needed here if (obj.unauth) { delete obj.unauth; } if (obj.agentUpdate != null) { obj.fs.close(obj.agentUpdate.fd); obj.agentUpdate = null; } - if (obj.agentInfo.capabilities & 0x20) { // This is a temporary agent, remote it + if ((obj.agentInfo) && (obj.agentInfo.capabilities) && (obj.agentInfo.capabilities & 0x20)) { // This is a temporary agent, remote it // Delete this node including network interface information and events obj.db.Remove(obj.dbNodeKey); // Remove node with that id obj.db.Remove('if' + obj.dbNodeKey); // Remove interface information diff --git a/package.json b/package.json index 60c41bd9..cf0c7a83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.1.6-f", + "version": "0.1.6-h", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/default.handlebars b/views/default.handlebars index 3e771f76..a23c5efd 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -351,18 +351,18 @@ -
+
- -
-
- + +
+
+
-