From 607849e0e719c22310a2ca0853ee9b2ac81dbb51 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 18 Mar 2021 14:36:21 -0700 Subject: [PATCH] Fixed agent desktop alert issue. --- public/scripts/agent-desktop-0.0.2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/agent-desktop-0.0.2.js b/public/scripts/agent-desktop-0.0.2.js index 511b9556..830a1f8f 100644 --- a/public/scripts/agent-desktop-0.0.2.js +++ b/public/scripts/agent-desktop-0.0.2.js @@ -252,12 +252,12 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) { obj.TouchArray = {}; break; case 17: // MNG_KVM_MESSAGE - var str = String.fromCharCode.apply(null, data.slice(4)); + var str = String.fromCharCode.apply(null, view.slice(4)); console.log('Got KVM Message: ' + str); if (obj.onMessage != null) obj.onMessage(str, obj); break; case 65: // Alert - var str = String.fromCharCode.apply(null, data.slice(4)); + var str = String.fromCharCode.apply(null, view.slice(4)); if (str[0] != '.') { console.log(str); //alert('KVM: ' + str); if (obj.parent && obj.parent.setConsoleMessage) { obj.parent.setConsoleMessage(str); }