summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorUrban Müller2008-01-16 00:19:38 +0000
committerUrban Müller2008-01-16 00:19:38 +0000
commit7aa13e5debdf34232bd0a97b5821e1a43caa7810 (patch)
tree91717b86341a815e59adac3a54d67e1d5b558017 /itjs
parentb3d9cb739b93ce5f877ad62e476713976236be53 (diff)
downloaditools-7aa13e5debdf34232bd0a97b5821e1a43caa7810.tar.gz
itools-7aa13e5debdf34232bd0a97b5821e1a43caa7810.tar.bz2
itools-7aa13e5debdf34232bd0a97b5821e1a43caa7810.zip
only catch errs on live....
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index efdaa6e..8aae2fa 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -119,7 +119,9 @@ function it_boot(file, isretry)
if (ln && ln[1]-0 == loader.responseText.length)
{
it_boot.sequence += "e";
- var code = "try {" + loader.responseText + "} catch (e) { it_catcherr(e.message, it_boot.file, -1); }"; // Wrapped in try/catch as Konqueror does not support window.onerror
+ var code = loader.responseText;
+ if (window.env && window.env.is_live_server)
+ code = "try {" + loader.responseText + "} catch (e) { it_catcherr(e.message, it_boot.file, -1); }"; // Wrapped in try/catch as Konqueror does not support window.onerror
if (window.execScript)
window.execScript(code, "javascript"); // IE work-around to get script executed in global scope
else