Skip to content

Commit

Permalink
Merge pull request #75 from AndreasSchacherbauerWikitude/master
Browse files Browse the repository at this point in the history
Updates Wikitude iOS PhoneGap Plugin;
  • Loading branch information
AndreasSchacherbauerWikitude committed Apr 1, 2015
2 parents 2a03683 + b53c70f commit 736f2dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ios/WTWikitudePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,15 @@ - (void)didReceivedCaptureScreenDidFailNotification:(NSNotification *)aNotificat

- (void)didReceivedArchitectDebugMessageNotification:(NSNotification *)aNotification
{
CDVPluginResult *pluginResult = nil;

if ( self.errorHandlerCallbackId )
{
CDVPluginResult *pluginResult = nil;

NSError *error = [[aNotification userInfo] objectForKey:WTArchitectDebugDelegateMessageKey];
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsDictionary:@{@"code": @(error.code), @"message": [error localizedDescription]}];

[self.commandDelegate sendPluginResult:pluginResult callbackId:self.errorHandlerCallbackId];
}

[self.commandDelegate sendPluginResult:pluginResult callbackId:self.errorHandlerCallbackId];
}


Expand Down

0 comments on commit 736f2dd

Please sign in to comment.