Adds to the URL-Extensions file

This commit is contained in:
Stuart Breckenridge committed 2021-01-09 06:09:50 +08:00
1 parent ea77504f3a
commit f85c1234a5
3 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -356,7 +356,7 @@ extension WebViewController: WKNavigationDelegate {
} else if components?.scheme == "mailto" {
decisionHandler(.cancel)
guard let emailAddress = URL(string: (url.emailAddress?.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed))!) else {
guard let emailAddress = url.percentEncodedEmailAddress else {
return
}