Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Fung-GGL committed Jan 10, 2022
1 parent c7b8f8c commit 2684935
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dsbridge/DWKWebView.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ -(void)webView:(WKWebView *)webView runJavaScriptConfirmPanelWithMessage:(NSStri
}

- (WKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures{
NSLog(@"webView:createWebViewWithConfiguration");
if( self.DSUIDelegate && [self.DSUIDelegate respondsToSelector:
@selector(webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:)]){
return [self.DSUIDelegate webView:webView createWebViewWithConfiguration:configuration forNavigationAction:navigationAction windowFeatures:windowFeatures];
Expand All @@ -189,6 +190,7 @@ - (WKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWe
}

- (void)webViewDidClose:(WKWebView *)webView{
NSLog(@"webViewDidClose");
if( self.DSUIDelegate && [self.DSUIDelegate respondsToSelector:
@selector(webViewDidClose:)]){
[self.DSUIDelegate webViewDidClose:webView];
Expand Down

0 comments on commit 2684935

Please sign in to comment.