summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorChristian Schneider2012-06-13 14:12:47 +0000
committerChristian Schneider2012-06-13 14:12:47 +0000
commit756865fc0e045c430453a350cb5fd3734cd1cf28 (patch)
treef7e54278a3d17fc52455520c49bb85cbb8f789b0 /itjs
parentb9a8066b7fccc4d5f2c05f4b99cad1275394d13d (diff)
downloaditools-756865fc0e045c430453a350cb5fd3734cd1cf28.tar.gz
itools-756865fc0e045c430453a350cb5fd3734cd1cf28.tar.bz2
itools-756865fc0e045c430453a350cb5fd3734cd1cf28.zip
Only redirect to static version for full non-bot user agents
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 80ad062..4e52489 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -84,7 +84,7 @@ function it_boot_addparam(url, param)
function it_panic(p)
{
- if (!document.location.href.match(/[?&]static=/)) // Avoid loop
+ if (!document.location.href.match(/[?&]static=/) && window.env && window.env.ua && window.env.ua.full && window.env.ua.device != "bot") // Avoid loop and non-full user agents
window.setTimeout("document.location.href = it_boot_addparam(document.location.href, 'static=" + p.reason + "')", 500);
p.type = "panic";