summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorChristian Schneider2012-05-23 14:07:12 +0000
committerChristian Schneider2012-05-23 14:07:12 +0000
commit96fc37a9417759262c2b39fc49c2684b3f34f544 (patch)
tree6f83ab82e2e5f575e03ca74c12c64658c1923bec /itjs
parent74c2caee39c8bb467e93ad77229382e3480fa067 (diff)
downloaditools-96fc37a9417759262c2b39fc49c2684b3f34f544.tar.gz
itools-96fc37a9417759262c2b39fc49c2684b3f34f544.tar.bz2
itools-96fc37a9417759262c2b39fc49c2684b3f34f544.zip
Fix itjs boot script fallback to not always include retry=1 and at the same time make retry=1 less cacheable to increase chance of successful recovery
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 059bd78..80ad062 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -186,11 +186,12 @@ function it_boot(file, isretry)
it_boot.file = file;
it_boot.sequence = isretry ? "r" : "b";
var loader = it_boot_getloader();
+ var bootparam = "boot=1" + (isretry ? "&retry=1" : "");
if (loader)
{
it_boot.sequence += "l";
- loader.open("GET", it_boot_addparam(file, "boot=1" + (isretry ? "&retry=1" : "")));
+ loader.open("GET", it_boot_addparam(file, bootparam));
loader.onreadystatechange = function()
{
var error = "", code = "";
@@ -234,13 +235,14 @@ function it_boot(file, isretry)
var doc = document;
var dom = doc && (dom = doc.getElementById('it_boot_dom')); // HTML has been rendered
it_boot.sequence += "n";
+ bootparam += "&script=1";
if (window.opera || (document.all && navigator.platform.indexOf("Mac") >= 0))
- document.write('<sc'+'ript type="text/javascript" src="'+it_boot_addparam(file, 'boot=1&script=1')+'"><\/sc'+'ript>');
+ document.write('<sc'+'ript type="text/javascript" src="'+it_boot_addparam(file, bootparam)+'"><\/sc'+'ript>');
else if (dom)
{
var tag = doc.createElement("script");
- tag.src = it_boot_addparam(file, 'boot=1&script=1&retry=1');
+ tag.src = it_boot_addparam(file, bootparam);
dom.appendChild(tag);
}
else