1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added quick clipboard upload/download feature to remote desktop.

This commit is contained in:
Ylian Saint-Hilaire 2020-08-19 16:29:21 -07:00
parent 0cc7604eeb
commit 659dcd5f7e
67 changed files with 37 additions and 66 deletions

View file

@ -863,14 +863,14 @@ function createMeshCore(agent) {
require('clipboard').dispatchRead().then(function (str) {
if (str) {
MeshServerLog("Getting clipboard content, " + str.length + " byte(s)", data);
mesh.SendCommand({ action: 'msg', type: 'getclip', sessionid: data.sessionid, data: str });
mesh.SendCommand({ action: 'msg', type: 'getclip', sessionid: data.sessionid, data: str, tag: data.tag });
}
});
} else {
require("clipboard").read().then(function (str) {
if (str) {
MeshServerLog("Getting clipboard content, " + str.length + " byte(s)", data);
mesh.SendCommand({ action: 'msg', type: 'getclip', sessionid: data.sessionid, data: str });
mesh.SendCommand({ action: 'msg', type: 'getclip', sessionid: data.sessionid, data: str, tag: data.tag });
}
});
}