summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Flatz2013-04-22 17:15:02 +0000
committerDavid Flatz2013-04-22 17:15:02 +0000
commit87cb9ae8265e38296d02a3e3d499ccc7ee62a31d (patch)
tree71dfc4bd48245a343975c97acc2784f0eb991b46
parent620ab1180ec944d0e7037ed3a76f1cee401f9e33 (diff)
downloaditools-87cb9ae8265e38296d02a3e3d499ccc7ee62a31d.tar.gz
itools-87cb9ae8265e38296d02a3e3d499ccc7ee62a31d.tar.bz2
itools-87cb9ae8265e38296d02a3e3d499ccc7ee62a31d.zip
introduce debug parameter 'jsdebug' that enforces javascript injection for better debugging
-rw-r--r--itjs/boot.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 4e52489..5261405 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -187,8 +187,9 @@ function it_boot(file, isretry)
it_boot.sequence = isretry ? "r" : "b";
var loader = it_boot_getloader();
var bootparam = "boot=1" + (isretry ? "&retry=1" : "");
+ var jsdebug = !!document.location.hostname.match(/\.jsdebug\./);
- if (loader)
+ if (loader && !jsdebug)
{
it_boot.sequence += "l";
loader.open("GET", it_boot_addparam(file, bootparam));