bang590 / JSPatch

JSPatch bridge Objective-C and Javascript using the Objective-C runtime. You can call any Objective-C class and method in JavaScript by just including a small engine. JSPatch is generally used to hotfix iOS App.
MIT License
11.37k stars 2.24k forks source link

ios13 Block报错 #860

Open Kratos28 opened 4 years ago

Kratos28 commented 4 years ago

在JS添加WKWebView,代码 回传给OC,在ios13下出现 decisionHandler is not a function. 而是'decisionHandler' is an instance of Object报错,而在ios10没有这个问题

JS代码:

` webView_decidePolicyForNavigationAction_decisionHandler: function(webView, navigationAction, decisionHandler) {

        decisionHandler(1);

}` 屏幕快照 2020-04-16 下午6 35 04