Skip to content

Commit 7688abf

Browse files
committed
fix: resolve unregisterd methods
1 parent 2263235 commit 7688abf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

STMScriptMessageHandler/Source/STMScriptMessageHandler.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ - (void)_flushReceivedMessage:(NSDictionary *)message {
151151
}
152152
STMHandler handler = self.methodHandlers[message[kSTMMessageParameterNameKey]];
153153
if (!handler) {
154+
responseCallback(@{});
154155
return;
155156
}
156157
handler(message[kSTMMessageParameterInfoKey], responseCallback);

0 commit comments

Comments
 (0)