Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Commit

Permalink
Fix for #90
Browse files Browse the repository at this point in the history
  • Loading branch information
nikDemyankov committed Jan 16, 2016
1 parent baceab9 commit e95a259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ios/Config/HCPApplicationConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/ios/HCPPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit e95a259

Please sign in to comment.