You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- (void)webView:(WKWebView *)webViewdecidePolicyForNavigationAction:(WKNavigationAction *)navigationActiondecisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler NS_EXTENSION_UNAVAILABLE("Uses APIs (i.e UIApplication.sharedApplication) not available for use in App Extensions.") {
327
327
NSURL* newURL = navigationAction.request.URL;
328
328
329
-
//intercept mailto URL and send it to an in-app Mail compose view instead
330
-
if ([[newURLscheme]isEqualToString:@"mailto"]) {
329
+
//Intercept mailto URL scheme and send it to an in-app Mail compose view instead:
330
+
if ([newURL.scheme isEqualToString:@"mailto"]) {
331
331
[selfhandleMailto:newURL];
332
332
decisionHandler(WKNavigationActionPolicyCancel);
333
333
return;
334
334
}
335
335
336
-
//open inline if host is the same, otherwise, pass to the system
0 commit comments