choice choice
This commit is contained in:
parent
d6f8e2aabd
commit
b254ae2c5d
@ -163,7 +163,12 @@ NSString * const KeyActionTypeOpen = @"openPage";
|
||||
|
||||
} else if ([shareType isEqualToString:@"url"]) {
|
||||
if (shareText.length > 0) {
|
||||
shareData = @[shareText, [NSURL URLWithString:shareText]];
|
||||
NSURL *url = [NSURL URLWithString:shareText];
|
||||
if (url) {
|
||||
shareData = @[shareText, url];
|
||||
} else {
|
||||
shareData = @[shareText];
|
||||
}
|
||||
}
|
||||
} else if ([shareType isEqualToString:@"image"]) {
|
||||
// TODO: Implement image parsing. 🏂
|
||||
|
||||
Loading…
Reference in New Issue
Block a user