diff options
author | David Flatz | 2013-04-22 17:15:02 +0000 |
---|---|---|
committer | David Flatz | 2013-04-22 17:15:02 +0000 |
commit | 87cb9ae8265e38296d02a3e3d499ccc7ee62a31d (patch) | |
tree | 71dfc4bd48245a343975c97acc2784f0eb991b46 /itjs/boot.js | |
parent | 620ab1180ec944d0e7037ed3a76f1cee401f9e33 (diff) | |
download | itools-87cb9ae8265e38296d02a3e3d499ccc7ee62a31d.tar.gz itools-87cb9ae8265e38296d02a3e3d499ccc7ee62a31d.tar.bz2 itools-87cb9ae8265e38296d02a3e3d499ccc7ee62a31d.zip |
introduce debug parameter 'jsdebug' that enforces javascript injection for better debugging
Diffstat (limited to 'itjs/boot.js')
-rw-r--r-- | itjs/boot.js | 3 |
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)); |