mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
More translation fixes.
This commit is contained in:
parent
c8e1a1c305
commit
88a649b05c
7 changed files with 1066 additions and 1053 deletions
2
public/scripts/agent-desktop-0.0.2-min.js
vendored
2
public/scripts/agent-desktop-0.0.2-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -215,7 +215,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
|
|||
if ((command >= 18) && (command != 65) && (command != 88)) {
|
||||
console.error("Invalid KVM command " + command + " of size " + cmdsize);
|
||||
console.log("Invalid KVM data", str.length, rstr2hex(str.substring(0, 40)) + '...');
|
||||
if (obj.parent && obj.parent.setConsoleMessage) { obj.parent.setConsoleMessage("Invalid KVM command " + command + " of size " + cmdsize); }
|
||||
if (obj.parent && obj.parent.setConsoleMessage) { obj.parent.setConsoleMessage("Received invalid network data", 5); }
|
||||
return;
|
||||
}
|
||||
if (cmdsize > str.length) {
|
||||
|
|
2
public/scripts/agent-redir-ws-0.1.1-min.js
vendored
2
public/scripts/agent-redir-ws-0.1.1-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -73,7 +73,7 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au
|
|||
//console.log(controlMsg);
|
||||
if ((typeof args != 'undefined') && args.redirtrace) { console.log('RedirRecv', controlMsg); }
|
||||
if (controlMsg.type == 'console') {
|
||||
obj.setConsoleMessage(controlMsg.msg, controlMsg.msgid, controlMsg.msgargs);
|
||||
obj.setConsoleMessage(controlMsg.msg, controlMsg.msgid, controlMsg.msgargs, controlMsg.timeout);
|
||||
} else if ((controlMsg.type == 'rtt') && (typeof controlMsg.time == 'number')) {
|
||||
obj.latency.current = (new Date().getTime()) - controlMsg.time;
|
||||
if (obj.latency.callbacks != null) { obj.latency.callback(obj.latency.current); }
|
||||
|
@ -92,11 +92,12 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au
|
|||
}
|
||||
|
||||
// Set the console message
|
||||
obj.setConsoleMessage = function (str, id, args) {
|
||||
obj.setConsoleMessage = function (str, id, args, timeout) {
|
||||
if (obj.consoleMessage == str) return;
|
||||
obj.consoleMessage = str;
|
||||
obj.consoleMessageId = id;
|
||||
obj.consoleMessageArgs = args;
|
||||
obj.consoleMessageTimeout = timeout;
|
||||
if (obj.onConsoleMessageChange) { obj.onConsoleMessageChange(obj, obj.consoleMessage, obj.consoleMessageId); }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue