You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/06/20 23:34:45 UTC
[30/35] ios commit: fixed duplication with file plugin issue
fixed duplication with file plugin issue
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/33b2858e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/33b2858e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/33b2858e
Branch: refs/heads/3.0.0
Commit: 33b2858ea1877e310c0e76168c59a349f31af54c
Parents: 57dbc0a
Author: Steven Gill <st...@gmail.com>
Authored: Mon Jun 17 17:18:49 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Thu Jun 20 14:31:33 2013 -0700
----------------------------------------------------------------------
CordovaLib/Classes/CDVURLProtocol.m | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/33b2858e/CordovaLib/Classes/CDVURLProtocol.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVURLProtocol.m b/CordovaLib/Classes/CDVURLProtocol.m
index 3c85f34..9bd4050 100644
--- a/CordovaLib/Classes/CDVURLProtocol.m
+++ b/CordovaLib/Classes/CDVURLProtocol.m
@@ -35,7 +35,7 @@ static CDVWhitelist* gWhitelist = nil;
// the actual pointer to avoid retaining.
static NSMutableSet* gRegisteredControllers = nil;
-NSString* const kCDVAssetsLibraryPrefix = @"assets-library://";
+NSString* const kCDVAssetsLibraryPrefixs = @"assets-library://";
// Returns the registered view controller that sent the given request.
// If the user-agent is not from a UIWebView, or if it's from an unregistered one,
@@ -110,7 +110,7 @@ static CDVViewController *viewControllerForRequest(NSURLRequest* request)
NSURL* theUrl = [theRequest URL];
CDVViewController* viewController = viewControllerForRequest(theRequest);
- if ([[theUrl absoluteString] hasPrefix:kCDVAssetsLibraryPrefix]) {
+ if ([[theUrl absoluteString] hasPrefix:kCDVAssetsLibraryPrefixs]) {
return YES;
} else if (viewController != nil) {
if ([[theUrl path] isEqualToString:@"/!gap_exec"]) {
@@ -159,7 +159,7 @@ static CDVViewController *viewControllerForRequest(NSURLRequest* request)
if ([[url path] isEqualToString:@"/!gap_exec"]) {
[self sendResponseWithResponseCode:200 data:nil mimeType:nil];
return;
- } else if ([[url absoluteString] hasPrefix:kCDVAssetsLibraryPrefix]) {
+ } else if ([[url absoluteString] hasPrefix:kCDVAssetsLibraryPrefixs]) {
ALAssetsLibraryAssetForURLResultBlock resultBlock = ^(ALAsset* asset) {
if (asset) {
// We have the asset! Get the data and send it along.