mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change to only access the Pasteboard if there is a URL on it
This commit is contained in:
@@ -54,10 +54,8 @@ class AddFeedViewController: UITableViewController {
|
||||
activityIndicator.isHidden = true
|
||||
activityIndicator.color = .label
|
||||
|
||||
if initialFeed == nil, let urlString = UIPasteboard.general.string {
|
||||
if urlString.mayBeURL {
|
||||
initialFeed = urlString.normalizedURL
|
||||
}
|
||||
if initialFeed == nil && UIPasteboard.general.hasURLs, let url = UIPasteboard.general.url {
|
||||
initialFeed = url.absoluteString.normalizedURL
|
||||
}
|
||||
|
||||
urlTextField.autocorrectionType = .no
|
||||
|
||||
Reference in New Issue
Block a user