谷歌浏览器不兼容关闭
This commit is contained in:
parent
0dd140749c
commit
932240737c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue