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

Alert问题 #21

Closed
CL-window opened this issue Apr 26, 2018 · 1 comment
Closed

Alert问题 #21

CL-window opened this issue Apr 26, 2018 · 1 comment

Comments

@CL-window
Copy link

你好,是这样的,网页里的alert应该是阻塞js线程的,但是从测试来看,X5里的alert直接在底下弹出,并没有阻塞住,请问这个地方有没有参数可以设置,或者告诉我相关源码在哪一块,我自己修改,谢谢

@CL-window
Copy link
Author

没有回答,自己回答好了,给后面有需要的人提供帮助,不拦截JS 就好了
.setWebChromeClient(new WebChromeClient() {
@OverRide
public boolean onJsAlert(WebView webView, String s, String s1, JsResult jsResult) {
return false;
}
})

@Justson Justson closed this as completed in 9a62e03 May 4, 2018
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

1 participant