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:
parent
0cc7604eeb
commit
659dcd5f7e
67 changed files with 37 additions and 66 deletions
|
@ -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 });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue