Fix missing sendText on amt-redir-ws.

jsastriawan committed Feb 10, 2020 at 13:23 UTC 8ae278ab061035e0f0f5c696662ae5be90ce342a
1 file changed +2
public/scripts/amt-redir-ws-0.1.0.js
+2
@@ -270,6 +270,8 @@ var CreateAmtRedirect = function (module, authCookie) {
270 }
271 }
272
273 + obj.sendText = obj.xxSend;
274 +
275 obj.send = function (x) {
276 if (obj.socket == null || obj.connectstate != 1) return;
277 if (obj.protocol == 1) { obj.xxSend(String.fromCharCode(0x28, 0x00, 0x00, 0x00) + IntToStrX(obj.amtsequence++) + ShortToStrX(x.length) + x); } else { obj.xxSend(x); }