Skip to content

Commit 28b8af5

Browse files
committed
.
1 parent 0cf3018 commit 28b8af5

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

scripts/fb_whoIsTyping.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,35 @@ export default {
4040
JSON.parse(arr[arr.length - 2])
4141
);
4242

43-
console.log(uid);
43+
console.log(uid, isStartTyping);
4444
saveTyingEvent(uid, isStartTyping);
4545
}
4646
});
4747
return websocket_instant;
4848
};
4949
window.WebSocket.prototype = WebSocketOrig.prototype;
5050
window.WebSocket.prototype.constructor = window.WebSocket;
51+
52+
requireLazy(
53+
[
54+
"LSUpdateTypingIndicator",
55+
"LSTypingUpdateTypingIndicatorStoredProcedure_Optimized",
56+
],
57+
(L1, L2) => {
58+
const L1Orig = L1.prototype.constructor;
59+
L1.prototype.constructor = function () {
60+
console.log(arguments);
61+
return L1Orig.apply(this, arguments);
62+
};
63+
64+
const L2Orig = L2.prototype.constructor;
65+
L2.prototype.constructor = function () {
66+
console.log("L2", arguments);
67+
return L2Orig.apply(this, arguments);
68+
};
69+
}
70+
);
5171
},
72+
73+
onDocumentIdle: () => {},
5274
};

0 commit comments

Comments
 (0)