From e95a259ed10bdd35613fdcf898c131f49c956502 Mon Sep 17 00:00:00 2001 From: Nikolay Demyankov Date: Sat, 16 Jan 2016 12:35:38 +0100 Subject: [PATCH] Fix for https://github.com/nordnet/cordova-hot-code-push/issues/90 --- src/ios/Config/HCPApplicationConfig.m | 2 +- src/ios/HCPPlugin.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/Config/HCPApplicationConfig.m b/src/ios/Config/HCPApplicationConfig.m index 717ed97e..c4cef1af 100644 --- a/src/ios/Config/HCPApplicationConfig.m +++ b/src/ios/Config/HCPApplicationConfig.m @@ -35,7 +35,7 @@ - (NSString *)storeUrl { } if (_storeUrl == nil) { - if ([self.storeIdentifier containsString:@"http://"] || [self.storeIdentifier containsString:@"https://"]) { + if ([self.storeIdentifier hasPrefix:@"http://"] || [self.storeIdentifier hasPrefix:@"https://"]) { _storeUrl = self.storeIdentifier; } else { _storeUrl = [NSString stringWithFormat:STORE_URL_TEMPLATE, self.storeIdentifier]; diff --git a/src/ios/HCPPlugin.m b/src/ios/HCPPlugin.m index acb01030..cbabb3aa 100644 --- a/src/ios/HCPPlugin.m +++ b/src/ios/HCPPlugin.m @@ -278,7 +278,7 @@ - (void)resetIndexPageToExternalStorage { * @return resulting path */ - (NSURL *)appendWwwFolderPathToPath:(NSString *)pagePath { - if ([pagePath containsString:_filesStructure.wwwFolder.absoluteString]) { + if ([pagePath hasPrefix:_filesStructure.wwwFolder.absoluteString]) { return [NSURL URLWithString:pagePath]; }