You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/06/28 17:07:17 UTC
[09/50] [abbrv] 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/8159679a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/8159679a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/8159679a
Branch: refs/heads/master
Commit: 8159679afc6ed6399cea61418510edb470591ce3
Parents: b6869e1
Author: Steven Gill <st...@gmail.com>
Authored: Mon Jun 17 17:18:49 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Jun 17 17:18:49 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/8159679a/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.