fix(WKWebView): iOS crash when WebView's title is nil (#521)

This commit is contained in:
TMomemt 2019-04-23 17:16:04 +08:00 committed by Thibault Malbranche
parent 24be864ceb
commit 7a91221926
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ static NSURLCredential* clientAuthenticationCredential;
{
NSDictionary *event = @{
@"url": _webView.URL.absoluteString ?: @"",
@"title": _webView.title,
@"title": _webView.title ?: @"",
@"loading" : @(_webView.loading),
@"canGoBack": @(_webView.canGoBack),
@"canGoForward" : @(_webView.canGoForward)