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

关于WebViewJavascriptBridge名称的问题 #12

Closed
wanyt opened this issue Nov 21, 2020 · 2 comments
Closed

关于WebViewJavascriptBridge名称的问题 #12

wanyt opened this issue Nov 21, 2020 · 2 comments

Comments

@wanyt
Copy link

wanyt commented Nov 21, 2020

iOS使用的bridge名称是WKWebViewJavascriptBridge,想和他们兼容一下,能不能把js串里面的所有WebViewJavascriptBridge都改成WKWebViewJavascriptBridge?然后在html里边调用window.WKWebViewJavascriptBridge

@smallbuer
Copy link
Owner

iOS使用的bridge名称是WKWebViewJavascriptBridge,想和他们兼容一下,能不能把js串里面的所有WebViewJavascriptBridge都改成WKWebViewJavascriptBridge?然后在html里边调用window.WKWebViewJavascriptBridge

可以的,这么修改的话可以满足,只需要修改BridgeUtil类中的两个JS字符串常亮即可,源JS文件在jscript目录下可参考具体实现

@wanyt
Copy link
Author

wanyt commented Nov 22, 2020

多谢,[Salute][Salute]

@wanyt wanyt closed this as completed Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants