Skip to content

Commit

Permalink
Merge pull request #11 from muster/patch-1
Browse files Browse the repository at this point in the history
Update EmailComposer.m
  • Loading branch information
jcjee committed Feb 11, 2016
2 parents 3d51389 + 2e8690e commit 2da0288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ios/EmailComposer.m
Expand Up @@ -198,7 +198,7 @@ - (void)mailComposeController:(MFMailComposeViewController*)controller didFinish

// Call the callback with the specified code
-(void) returnWithCode:(int)code {
[self writeJavascript:[NSString stringWithFormat:@"window.plugins.emailComposer._didFinishWithResult(%d);", code]];
[self.commandDelegate evalJs:[NSString stringWithFormat:@"window.plugins.emailComposer._didFinishWithResult(%d);", code]];
}

// Retrieve the mime type from the file extension
Expand All @@ -219,4 +219,4 @@ -(NSString *) getMimeTypeFromFileExtension:(NSString *)extension {
return mimeType;
}

@end
@end

0 comments on commit 2da0288

Please sign in to comment.