Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when handler an unknow meth handlerName fatalError #21

Closed
419860198 opened this issue Feb 1, 2018 · 2 comments
Closed

when handler an unknow meth handlerName fatalError #21

419860198 opened this issue Feb 1, 2018 · 2 comments

Comments

@419860198
Copy link

2018-02-01 14:17:25.014586+0800 Sellers[338:53387] Fatal error: No handler for msg from JS: ["callbackId": cb_2_JS_1517465828437, "handlerName": getUnreadNum, "data": {
}]..Please at least create a default handler when initializing the bridge = ): file /Users/zhangxiaobo/TFotomerchanat/Pods/SwiftWebViewBridge/SwiftWebViewBridge/SwiftWebViewBridge.swift, line 223

can you don't use fatalError?

@ShawnFoo
Copy link
Owner

ShawnFoo commented Feb 1, 2018

Yep, I totally agree with you.

A typo in javascript will crash the app. That's unacceptable.

That will be changed to print debug log or only using fatalError in debug mode.

@ShawnFoo
Copy link
Owner

ShawnFoo commented Feb 1, 2018

Already removed fatalError on branch develop_wkwebview

@ShawnFoo ShawnFoo closed this as completed Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants