We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b271e4 + a91f290 commit fa0ca36Copy full SHA for fa0ca36
WebViewJavascriptBridge/WebViewJavascriptBridge.m
@@ -95,7 +95,11 @@ - (void)_sendData:(NSDictionary *)data responseCallback:(WVJBResponseCallback)re
95
if (!data) {
96
data = (NSDictionary *)[NSNull null];
97
}
98
- NSMutableDictionary* message = [NSMutableDictionary dictionaryWithObject:data forKey:@"data"];
+ NSMutableDictionary* message = [NSMutableDictionary dictionary];
99
+
100
+ if (data) {
101
+ message[@"data"] = data;
102
+ }
103
104
if (responseCallback) {
105
NSString* callbackId = [NSString stringWithFormat:@"objc_cb_%ld", ++_uniqueId];
0 commit comments