Skip to content
Permalink
Browse files
CB-9247 - cordova-ios 4.x mobile-spec compilation errors
  • Loading branch information
shazron committed Jun 25, 2015
1 parent 1f1b08f commit e96809046401243c4cfbea6272d7982f13b30008
Showing 1 changed file with 2 additions and 2 deletions.
@@ -38,9 +38,9 @@ - (void)URLIsAllowed:(CDVInvokedUrlCommand*)command
{
NSString *url = [command argumentAtIndex:0];

CDVWhitelist* whitelist = [(CDVViewController *)self.viewController whitelist];
CDVViewController* vc = (CDVViewController *)self.viewController;

bool isAllowed = [whitelist URLIsAllowed:[NSURL URLWithString:url]];
bool isAllowed = [vc URLisAllowed:[NSURL URLWithString:url]];
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsBool:isAllowed];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

0 comments on commit e968090

Please sign in to comment.