谷歌浏览器不兼容关闭

This commit is contained in:
daiao 2017-03-24 10:43:13 +08:00
parent 0dd140749c
commit 932240737c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
window.open('', '_top'); window.top.close();
}
}
else if (navigator.userAgent.indexOf("Firefox") > 0) { //火狐浏览器
else if (navigator.userAgent.indexOf("Firefox") > 0 || navigator.userAgent.indexOf("Chrome") > 0 ) { //火狐浏览器和谷歌
window.location.href = 'about:blank';
//window.history.go(-2);
}