mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Completed RDP settings.
This commit is contained in:
parent
4a9331cd1b
commit
491a6b918e
4 changed files with 73 additions and 32 deletions
|
@ -27,7 +27,13 @@ var CreateRDPDesktop = function (canvasid) {
|
|||
obj.nodeid = nodeid;
|
||||
obj.port = port;
|
||||
obj.credentials = credentials;
|
||||
var options = { savepass: credentials.savecred, useServerCreds: credentials.servercred };
|
||||
var options = { savepass: credentials.savecred, useServerCreds: credentials.servercred, width: credentials.width, height: credentials.height, flags: credentials.flags };
|
||||
if (credentials.width && credentials.height) {
|
||||
options.width = obj.ScreenWidth = obj.width = credentials.width;
|
||||
options.height = obj.ScreenHeight = obj.height = credentials.height;
|
||||
delete credentials.width;
|
||||
delete credentials.height;
|
||||
}
|
||||
obj.render = new Mstsc.Canvas.create(obj.canvas);
|
||||
obj.socket = new WebSocket('wss://' + window.location.host + '/mstscrelay.ashx'); // TODO: Support domains
|
||||
obj.socket.binaryType = 'arraybuffer';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue