-
Notifications
You must be signed in to change notification settings - Fork 153
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
最新版的火狐不能完成检测,一直在绕圈 #9
Comments
JS 脚本没执行,也没报错。 我暂时看不出原因,你先用其他浏览器吧。 |
ie8也一直在绕圈 |
这是 ES6 的测试,就没考虑支持 IE8。 |
问题代码scripts.forEach(function(src) {
var script = document.createElement('script');
if (navigator.userAgent.indexOf('firefox') !== -1 ||
navigator.userAgent.indexOf('Firefox') !== -1) {
script.type = "application/javascript;version=1.7";
}
script.src = src;
script.async = false;
document.body.appendChild(script);
}); 解决方案请移除中间对于FireFox特别判断的部分,这样即可正常工作。 变更后的代码scripts.forEach(function(src) {
var script = document.createElement('script');
script.src = src;
script.async = false;
document.body.appendChild(script);
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在线检测页面
The text was updated successfully, but these errors were encountered: