chached things
This commit is contained in:
1 parent
4375f347b5
commit
6b4539b945
70 files changed
+71214
-10
No files matched your search
@@ -0,0 +1,22 @@
|
||||
function doRedirect(url) {
|
||||
function inFrame () {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function botBrowser() {
|
||||
try {
|
||||
return navigator.webdriver
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!inFrame()) {
|
||||
window.location= url;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user