WKWebView崩溃

# [ios11 decisionHandler(.allow)崩溃 Thread NSInternalInconsistencyException Completion handler passed to -[WKWebViewJavascriptBridge webView:decidePolicyForNavigationAction:decisionHandler:] was](https://www.cnblogs.com/Jusive/p/7561393.html)

decisionHandler(.allow) was called more than once

崩溃信息:

0 Thread

NSInternalInconsistencyException

Completion handler passed to -[WKWebViewJavascriptBridge webView:decidePolicyForNavigationAction:decisionHandler:] was called more than once

解决方案:

if WebViewJavascriptBridgeBase().isWebViewJavascriptBridgeURL(url) {

return

}

decisionHandler(.allow)

https://github.com/marcuswestin/WebViewJavascriptBridge/issues/302

你可能感兴趣的:(WKWebView崩溃)