Skip to content

Commit

Permalink
Fix tel scheme???
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-T committed Jan 14, 2025
1 parent 5e2b579 commit 3517595
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ extension BrowserViewController: WKNavigationDelegate {
// Let the system's prompt handle these. We can't let these cases fall-through, as the last check in this file will
// assume it's an external app prompt
if ["tel", "facetime", "facetime-audio"].contains(requestURL.scheme) {
return (.allow, preferences)
let shouldOpen = await withCheckedContinuation { continuation in
UIApplication.shared.open(requestURL, options: [:]) { didOpen in
continuation.resume(returning: didOpen)
}
}
return (shouldOpen ? .allow : .cancel, preferences)
}

// Second special case are a set of URLs that look like regular http links, but should be handed over to iOS
Expand Down

0 comments on commit 3517595

Please sign in to comment.