summaryrefslogtreecommitdiff
path: root/itjs/boot.js
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-08-06 07:54:11 +0000
committerThomas BrĂ¼derli2007-08-06 07:54:11 +0000
commit530241b03ebe431cd8a3d071f0a9ab8755ecdb4c (patch)
treeeb1cf8509233356262446a79f94d661b8385f4a7 /itjs/boot.js
parentf89972bb4358b07924a164399163744b2a183c0f (diff)
downloaditools-530241b03ebe431cd8a3d071f0a9ab8755ecdb4c.tar.gz
itools-530241b03ebe431cd8a3d071f0a9ab8755ecdb4c.tar.bz2
itools-530241b03ebe431cd8a3d071f0a9ab8755ecdb4c.zip
Add timestamp on it_boot retry to prevent caching
Diffstat (limited to 'itjs/boot.js')
-rw-r--r--itjs/boot.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 2c1943f..9dd6ed9 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -95,7 +95,7 @@ function it_boot(file, isretry)
if (loader)
{
- loader.open("GET", it_boot_addparam(file, "boot=1" + (isretry ? "&retry=1" : "")));
+ loader.open("GET", it_boot_addparam(file, "boot=1" + (isretry ? "&retry=1&t="+new Date().getTime() : "")));
loader.onreadystatechange = function()
{
var error = "";
@@ -118,8 +118,9 @@ function it_boot(file, isretry)
else
window.setTimeout(code, 0); // Standard compliant version
}
- else
- error = "Length mismatch " + data.code.length + " != " + data.len;
+ else {
+ alert("Length mismatch " + data.code.length + " != " + data.len);
+ error = "Length mismatch " + data.code.length + " != " + data.len; }
}
catch (e)
{