mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 11:16:59 +00:00
Change to only access the Pasteboard if there is a URL on it
This commit is contained in:
1 parent
e7fdac6b41
commit
5bc3288d59
1 file changed
+2
-4
@@ -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