Adds to the URL-Extensions file

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

View File

@@ -315,7 +315,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
}