Skip to content
Permalink
Browse files

Log a warning when calling an unregistered handler from ObjC. Fix #120

  • Loading branch information
marcuswestin committed Jan 29, 2016
1 parent b1184a4 commit 0e6f0b96257230cad7d6e76e6bc2a2c4624ddb7d
Showing with 3 additions and 0 deletions.
  1. +3 −0 WebViewJavascriptBridge/WebViewJavascriptBridge_JS.m
@@ -82,6 +82,9 @@ function _dispatchMessageFromObjC(messageJSON) {
}

var handler = messageHandlers[message.handlerName];
if (!handler) {
console.log(@"WebViewJavascriptBridge: WARNING: no handler for message from ObjC:", message);
}
try {
handler(message.data, responseCallback);
} catch(exception) {

0 comments on commit 0e6f0b9

Please sign in to comment.
You can’t perform that action at this time.