cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject spec commit: CB-9247 - cordova-ios 4.x mobile-spec compilation errors
Date Thu, 25 Jun 2015 13:10:42 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 1f1b08f2a -> e96809046


CB-9247 - cordova-ios 4.x mobile-spec compilation errors


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/e9680904
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/e9680904
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/e9680904

Branch: refs/heads/master
Commit: e96809046401243c4cfbea6272d7982f13b30008
Parents: 1f1b08f
Author: Shazron Abdullah <shazron@gmail.com>
Authored: Thu Jun 25 06:10:40 2015 -0700
Committer: Shazron Abdullah <shazron@gmail.com>
Committed: Thu Jun 25 06:10:40 2015 -0700

----------------------------------------------------------------------
 cordova-plugin-whitelist/src/ios/CDVWhitelistAPI.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/e9680904/cordova-plugin-whitelist/src/ios/CDVWhitelistAPI.m
----------------------------------------------------------------------
diff --git a/cordova-plugin-whitelist/src/ios/CDVWhitelistAPI.m b/cordova-plugin-whitelist/src/ios/CDVWhitelistAPI.m
index 13b89ee..4c41144 100644
--- a/cordova-plugin-whitelist/src/ios/CDVWhitelistAPI.m
+++ b/cordova-plugin-whitelist/src/ios/CDVWhitelistAPI.m
@@ -38,9 +38,9 @@
 {
     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];
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message