CB-8270 Remove usage of [arr JSONString]
, since it's been renamed to cdv_JSONString
Just updating to the new name would make the plugin incompatible with previous cordova-ios versions.
This commit is contained in:
parent
e5d6d6f69a
commit
bfff56aef4
@ -20,7 +20,6 @@
|
||||
#import "CDVInAppBrowser.h"
|
||||
#import <Cordova/CDVPluginResult.h>
|
||||
#import <Cordova/CDVUserAgentUtil.h>
|
||||
#import <Cordova/CDVJSON.h>
|
||||
|
||||
#define kInAppBrowserTargetSelf @"_self"
|
||||
#define kInAppBrowserTargetSystem @"_system"
|
||||
@ -265,7 +264,8 @@
|
||||
}
|
||||
|
||||
if (jsWrapper != nil) {
|
||||
NSString* sourceArrayString = [@[source] JSONString];
|
||||
NSData* jsonData = [NSJSONSerialization dataWithJSONObject:@[source] options:0 error:nil];
|
||||
NSString* sourceArrayString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
||||
if (sourceArrayString) {
|
||||
NSString* sourceString = [sourceArrayString substringWithRange:NSMakeRange(1, [sourceArrayString length] - 2)];
|
||||
NSString* jsToInject = [NSString stringWithFormat:jsWrapper, sourceString];
|
||||
|
Loading…
Reference in New Issue
Block a user