Merge branch 'develop' of https://github.com/rileytestut/AltStore into develop

This commit is contained in:
Riley Testut
2020-10-01 14:14:46 -07:00

View File

@@ -106,7 +106,12 @@ private extension SourcesViewController
}
alertController.addAction(.cancel)
alertController.addAction(UIAlertAction(title: NSLocalizedString("Add", comment: ""), style: .default) { (action) in
guard let text = alertController.textFields![0].text, let sourceURL = URL(string: text) else { return }
guard let text = alertController.textFields![0].text else { return }
guard var sourceURL = URL(string: text) else { return }
if sourceURL.scheme == nil {
guard let httpsSourceURL = URL(string: "https://" + text) else { return }
sourceURL = httpsSourceURL
}
self.addSource(url: sourceURL)
})