mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-27 14:43:14 -05:00
Version 0.8.63
This commit is contained in:
parent
d8fa07941d
commit
b2798e8bc5
@ -1400,7 +1400,6 @@ function serverFetchFile() {
|
|||||||
if ((Object.keys(agentFileHttpRequests).length > 4) || (agentFileHttpPendingRequests.length == 0)) return; // No more than 4 active HTTPS requests to the server.
|
if ((Object.keys(agentFileHttpRequests).length > 4) || (agentFileHttpPendingRequests.length == 0)) return; // No more than 4 active HTTPS requests to the server.
|
||||||
var data = agentFileHttpPendingRequests.shift();
|
var data = agentFileHttpPendingRequests.shift();
|
||||||
if ((data.overwrite !== true) && fs.existsSync(data.path)) return; // Don't overwrite an existing file.
|
if ((data.overwrite !== true) && fs.existsSync(data.path)) return; // Don't overwrite an existing file.
|
||||||
//try { fs.unlinkSync(data.path); } catch (ex) { } // Remove the old file.
|
|
||||||
if (data.createFolder) { try { fs.mkdirSync(data.folder); } catch (ex) { } } // If requested, create the local folder.
|
if (data.createFolder) { try { fs.mkdirSync(data.folder); } catch (ex) { } } // If requested, create the local folder.
|
||||||
data.url = 'http' + getServerTargetUrlEx('*/').substring(2);
|
data.url = 'http' + getServerTargetUrlEx('*/').substring(2);
|
||||||
var agentFileHttpOptions = http.parseUri(data.url);
|
var agentFileHttpOptions = http.parseUri(data.url);
|
||||||
@ -1428,7 +1427,7 @@ function serverFetchFile() {
|
|||||||
} catch (ex) { delete agentFileHttpRequests[this.xurlpath]; delete response.xparent; serverFetchFile(); return; }
|
} catch (ex) { delete agentFileHttpRequests[this.xurlpath]; delete response.xparent; serverFetchFile(); return; }
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
agentFileHttpRequest.on('error', function (ex) { delete agentFileHttpRequests[this.xurlpath]; serverFetchFile(); });
|
agentFileHttpRequest.on('error', function (ex) { sendConsoleText(ex); delete agentFileHttpRequests[this.xurlpath]; serverFetchFile(); });
|
||||||
agentFileHttpRequest.end();
|
agentFileHttpRequest.end();
|
||||||
agentFileHttpRequest.xurlpath = data.urlpath;
|
agentFileHttpRequest.xurlpath = data.urlpath;
|
||||||
agentFileHttpRequest.xpath = data.path;
|
agentFileHttpRequest.xpath = data.path;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.8.62",
|
"version": "0.8.63",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Device Management",
|
"Remote Device Management",
|
||||||
"Remote Device Monitoring",
|
"Remote Device Monitoring",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -7675,7 +7675,7 @@
|
|||||||
QE('connectbutton1h', hwonline);
|
QE('connectbutton1h', hwonline);
|
||||||
QV('deskFocusBtn', (desktop != null) && (desktop.contype == 2) && (deskState != 0) && (desktopsettings.showfocus));
|
QV('deskFocusBtn', (desktop != null) && (desktop.contype == 2) && (deskState != 0) && (desktopsettings.showfocus));
|
||||||
QE('DeskClip', deskState == 3);
|
QE('DeskClip', deskState == 3);
|
||||||
QV('DeskClip', (inputAllowed) && (currentNode.agent) && (currentNode.agent.id != 11) && (currentNode.agent.id != 16) && ((desktop == null) || (desktop.contype != 2)) && (desktopsettings.autoclipboard != true)); // Clipboard not supported on macOS
|
QV('DeskClip', (inputAllowed) && (currentNode.agent) && (currentNode.agent.id != 11) && (currentNode.agent.id != 16) && ((desktop == null) || (desktop.contype != 2)) && ((desktopsettings.autoclipboard != true) || (navigator.clipboard == null) || (navigator.clipboard.readText == null))); // Clipboard not supported on macOS
|
||||||
QE('DeskESC', deskState == 3);
|
QE('DeskESC', deskState == 3);
|
||||||
QV('DeskESC', browserfullscreen && inputAllowed);
|
QV('DeskESC', browserfullscreen && inputAllowed);
|
||||||
QE('DeskType', deskState == 3);
|
QE('DeskType', deskState == 3);
|
||||||
@ -7686,9 +7686,9 @@
|
|||||||
QV('DeskTimer', deskState == 3);
|
QV('DeskTimer', deskState == 3);
|
||||||
|
|
||||||
// Enable browser clipboard read if supported
|
// Enable browser clipboard read if supported
|
||||||
QV('DeskClipboardOutButton', online && inputAllowed && (navigator.clipboard != null) && (navigator.clipboard.readText != null) && (desktopsettings.autoclipboard != true));
|
QV('DeskClipboardOutButton', online && inputAllowed && (navigator.clipboard != null) && (navigator.clipboard.readText != null) && ((desktopsettings.autoclipboard != true) || (navigator.clipboard == null) || (navigator.clipboard.readText == null)));
|
||||||
QV('d7deskAutoClipboardLabel', navigator.clipboard.readText != null);
|
QV('d7deskAutoClipboardLabel', navigator.clipboard.readText != null);
|
||||||
QV('DeskClipboardInButton', online && inputAllowed && (navigator.clipboard != null) && (navigator.clipboard.writeText != null) && (desktopsettings.autoclipboard != true));
|
QV('DeskClipboardInButton', online && inputAllowed && (navigator.clipboard != null) && (navigator.clipboard.writeText != null) && ((desktopsettings.autoclipboard != true) || (navigator.clipboard == null) || (navigator.clipboard.readText == null)));
|
||||||
|
|
||||||
if (deskState != 3) { QV('DeskInputLockedButton', false); QV('DeskInputUnLockedButton', false); }
|
if (deskState != 3) { QV('DeskInputLockedButton', false); QV('DeskInputUnLockedButton', false); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user