From 8ae278ab061035e0f0f5c696662ae5be90ce342a Mon Sep 17 00:00:00 2001 From: jsastriawan Date: Mon, 10 Feb 2020 13:23:21 -0700 Subject: [PATCH] Fix missing sendText on amt-redir-ws. --- public/scripts/amt-redir-ws-0.1.0.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/amt-redir-ws-0.1.0.js b/public/scripts/amt-redir-ws-0.1.0.js index d03c387b..20e80c26 100644 --- a/public/scripts/amt-redir-ws-0.1.0.js +++ b/public/scripts/amt-redir-ws-0.1.0.js @@ -270,6 +270,8 @@ var CreateAmtRedirect = function (module, authCookie) { } } + obj.sendText = obj.xxSend; + obj.send = function (x) { if (obj.socket == null || obj.connectstate != 1) return; if (obj.protocol == 1) { obj.xxSend(String.fromCharCode(0x28, 0x00, 0x00, 0x00) + IntToStrX(obj.amtsequence++) + ShortToStrX(x.length) + x); } else { obj.xxSend(x); }