mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Attempt to isolate source of unresponsiveness
This commit is contained in:
1 parent
4fe99d368f
commit
50794d7b1c
1 file changed
+2
@@ -197,6 +197,7 @@
|
||||
* @param {Function} callback - Receives the parsed message object
|
||||
*/
|
||||
function listen(messageType, callback) {
|
||||
return;
|
||||
if (typeof messageType !== 'string' || !messageType) {
|
||||
ERR('listen() requires a non-empty string messageType');
|
||||
return;
|
||||
@@ -236,6 +237,7 @@
|
||||
* @param {Function} callback
|
||||
*/
|
||||
function unlisten(messageType, callback) {
|
||||
return;
|
||||
if (!listeners[messageType]) return;
|
||||
listeners[messageType] = listeners[messageType].filter((cb) => cb !== callback);
|
||||
LOG(`Unregistered listener for message type: ${messageType} (${listeners[messageType].length} remaining)`);
|
||||
|
||||
Reference in new issue
Block a user