cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcesarmob...@apache.org
Subject ios commit: CB-11810 (ios) fix unable to load index page from frameworkpath
Date Thu, 22 Dec 2016 22:43:47 GMT
Repository: cordova-ios
Updated Branches:
  refs/heads/master 412b253e5 -> 546393769


CB-11810 (ios) fix unable to load index page from frameworkpath

 This closes #282


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

Branch: refs/heads/master
Commit: 5463937695f783e72f32d4953e13bfe4d79855ab
Parents: 412b253
Author: Julio César <jcesarmobile@gmail.com>
Authored: Sat Dec 17 17:14:09 2016 +0100
Committer: Julio César <jcesarmobile@gmail.com>
Committed: Thu Dec 22 23:42:45 2016 +0100

----------------------------------------------------------------------
 CordovaLib/Classes/Public/CDVViewController.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/54639376/CordovaLib/Classes/Public/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Public/CDVViewController.m b/CordovaLib/Classes/Public/CDVViewController.m
index 3856c56..c282007 100644
--- a/CordovaLib/Classes/Public/CDVViewController.m
+++ b/CordovaLib/Classes/Public/CDVViewController.m
@@ -207,11 +207,11 @@
         appURL = [NSURL URLWithString:self.startPage];
     } else if ([self.wwwFolderName rangeOfString:@"://"].location != NSNotFound) {
         appURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@", self.wwwFolderName,
self.startPage]];
-    } else if([self.wwwFolderName hasSuffix:@".bundle"]){
+    } else if([self.wwwFolderName rangeOfString:@".bundle"].location != NSNotFound){
         // www folder is actually a bundle
         NSBundle* bundle = [NSBundle bundleWithPath:self.wwwFolderName];
         appURL = [bundle URLForResource:self.startPage withExtension:nil];
-    } else if([self.wwwFolderName hasSuffix:@".framework"]){
+    } else if([self.wwwFolderName rangeOfString:@".framework"].location != NSNotFound){
         // www folder is actually a framework
         NSBundle* bundle = [NSBundle bundleWithPath:self.wwwFolderName];
         appURL = [bundle URLForResource:self.startPage withExtension:nil];


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


Mime
View raw message