Skip to content

Commit

Permalink
Fixes so that in the web view we are able to navigate different links…
Browse files Browse the repository at this point in the history
… correctly <Deep> (cocos2d#20266)
  • Loading branch information
deepshah7 authored and minggo committed Oct 31, 2019
1 parent ffb3955 commit 4980e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/ui/UIWebView/UIWebViewImpl-ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ - (void)setScalesPageToFit:(const bool)scalesPageToFit {

#pragma mark - WKNavigationDelegate
- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler {
NSString *url = [webView.URL absoluteString];
NSString *url = [[[navigationAction request] URL] absoluteString];
if ([[webView.URL scheme] isEqualToString:self.jsScheme]) {
self.onJsCallback([url UTF8String]);
decisionHandler(WKNavigationActionPolicyCancel);
Expand Down

0 comments on commit 4980e8c

Please sign in to comment.