Skip to content

Commit

Permalink
chore: remove UIWebView comment and variable (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Mar 27, 2020
1 parent 8587114 commit 5dac782
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ios/CDVWKWebViewEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ - (void)updateWithInfo:(NSDictionary *)info
}

// This forwards the methods that are in the header that are not implemented here.
// Both WKWebView and UIWebView implement the below:
// loadHTMLString:baseURL:
// loadRequest:
- (id)forwardingTargetForSelector:(SEL)aSelector
Expand Down Expand Up @@ -740,7 +739,11 @@ - (void) webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigat
// https://issues.apache.org/jira/browse/CB-12497
int navType = (int)navigationAction.navigationType;
if (WKNavigationTypeOther == navigationAction.navigationType) {
navType = (int)UIWebViewNavigationTypeOther;
#ifdef __CORDOVA_6_0_0
navType = -1;
#else
navType = 5;
#endif
}
shouldAllowRequest = (((BOOL (*)(id, SEL, id, int))objc_msgSend)(plugin, selector, navigationAction.request, navType));
if (!shouldAllowRequest) {
Expand Down

0 comments on commit 5dac782

Please sign in to comment.