From 756865fc0e045c430453a350cb5fd3734cd1cf28 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 13 Jun 2012 14:12:47 +0000 Subject: Only redirect to static version for full non-bot user agents --- itjs/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit v1.2.3