Commit 13e58ae9 authored by pete谢兆麟's avatar pete谢兆麟

修改变量

parent 889b8403
......@@ -13,7 +13,7 @@ import dsBridge
class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationDelegate {
var operationFlag:Bool = false
let api = YHJsApi()
typealias Block = (YHWebModel) -> ()
var block: Block?
......@@ -110,7 +110,6 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
webview.scrollView.contentInsetAdjustmentBehavior = .never
webview.navigationDelegate = self
let api = YHJsApi()
api.delegate = self
webview.addJavascriptObject(api, namespace: nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment