File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 4242
4343 function _doSend(message, responseCallback) {
4444 if (responseCallback) {
45- var callbackId = 'js_cb_ '+(uniqueId++)
45+ var callbackId = 'cb_ '+(uniqueId++)+'_'+new Date().getTime( )
4646 responseCallbacks[callbackId] = responseCallback
4747 message['callbackId'] = callbackId
4848 }
6363
6464 if (message.responseId) {
6565 var responseCallback = responseCallbacks[message.responseId]
66+ if (!responseCallback) { return; }
6667 responseCallback(message.responseData)
6768 delete responseCallbacks[message.responseId]
6869 } else {
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ - (void)_flushMessageQueue {
123123 NSString *messageQueueString = [_webView stringByEvaluatingJavaScriptFromString: @" WebViewJavascriptBridge._fetchQueue();" ];
124124 NSArray * messages = [messageQueueString componentsSeparatedByString: MESSAGE_SEPARATOR];
125125 for (NSString *messageJSON in messages) {
126- [self _log: @" received " json: messageJSON];
126+ [self _log: @" receivd " json: messageJSON];
127127
128128 NSDictionary * message = [self _deserializeMessageJSON: messageJSON];
129129
You can’t perform that action at this time.
0 commit comments