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

Commit

Permalink
Fixes after merging PR #150.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikDemyankov committed May 9, 2016
1 parent 125ae73 commit f43df20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ios/HCPPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ - (BOOL)_fetchUpdate:(NSString *)callbackId {
[[HCPUpdateLoader sharedInstance] downloadUpdateWithConfigUrl:_pluginXmlConfig.configUrl
currentWebVersion:_pluginInternalPrefs.currentReleaseVersionName
currentNativeVersion:_pluginXmlConfig.nativeInterfaceVersion
error:&error];
error:&error
headers:self.headers];
if (error) {
if (callbackId) {
CDVPluginResult *errorResult = [CDVPluginResult pluginResultWithActionName:kHCPUpdateDownloadErrorEvent
Expand Down
2 changes: 1 addition & 1 deletion src/ios/Updater/HCPUpdateLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ - (BOOL)downloadUpdateWithConfigUrl:(NSURL *)configUrl currentWebVersion:(NSStri
}

*error = nil;
id<HCPWorker> task = [[HCPUpdateLoaderWorker alloc] initWithConfigUrl:configUrl
HCPUpdateLoaderWorker *task = [[HCPUpdateLoaderWorker alloc] initWithConfigUrl:configUrl
currentWebVersion:currentWebVersion
nativeInterfaceVersion:currentNativeVersion];
task.headers = headers;
Expand Down

0 comments on commit f43df20

Please sign in to comment.