Skip to content

Commit

Permalink
Fix for file:/// url in shared file
Browse files Browse the repository at this point in the history
  • Loading branch information
devgeeks committed Oct 29, 2014
1 parent 11ecff1 commit 95e7454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/FileViewerPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ - (void)share:(CDVInvokedUrlCommand*)command
if ([extras objectForKey:@"android.intent.extra.STREAM"]) {
filePath = [extras objectForKey:@"android.intent.extra.STREAM"];
if (filePath) {
fileUrl = [NSURL fileURLWithPath:filePath];
fileUrl = [NSURL URLWithString:filePath];
}
}
if ([extras objectForKey:@"android.intent.extra.TEXT"]) {
Expand Down

0 comments on commit 95e7454

Please sign in to comment.