Skip to content

Commit 5dac782

Browse files
authored
chore: remove UIWebView comment and variable (#538)
1 parent 8587114 commit 5dac782

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ios/CDVWKWebViewEngine.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ - (void)updateWithInfo:(NSDictionary *)info
526526
}
527527

528528
// This forwards the methods that are in the header that are not implemented here.
529-
// Both WKWebView and UIWebView implement the below:
530529
// loadHTMLString:baseURL:
531530
// loadRequest:
532531
- (id)forwardingTargetForSelector:(SEL)aSelector
@@ -740,7 +739,11 @@ - (void) webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigat
740739
// https://issues.apache.org/jira/browse/CB-12497
741740
int navType = (int)navigationAction.navigationType;
742741
if (WKNavigationTypeOther == navigationAction.navigationType) {
743-
navType = (int)UIWebViewNavigationTypeOther;
742+
#ifdef __CORDOVA_6_0_0
743+
navType = -1;
744+
#else
745+
navType = 5;
746+
#endif
744747
}
745748
shouldAllowRequest = (((BOOL (*)(id, SEL, id, int))objc_msgSend)(plugin, selector, navigationAction.request, navType));
746749
if (!shouldAllowRequest) {

0 commit comments

Comments
 (0)