summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2008-01-16 08:40:48 +0000
committerThomas BrĂ¼derli2008-01-16 08:40:48 +0000
commit82fbf0e36d26aa672964d1f908e4f05ad6bef797 (patch)
tree751cf53178b4cb58b8999d5611925864974c8eb0 /itjs
parent7aa13e5debdf34232bd0a97b5821e1a43caa7810 (diff)
downloaditools-82fbf0e36d26aa672964d1f908e4f05ad6bef797.tar.gz
itools-82fbf0e36d26aa672964d1f908e4f05ad6bef797.tar.bz2
itools-82fbf0e36d26aa672964d1f908e4f05ad6bef797.zip
We don't always have an env
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 8aae2fa..b0abe93 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -120,7 +120,7 @@ function it_boot(file, isretry)
{
it_boot.sequence += "e";
var code = loader.responseText;
- if (window.env && window.env.is_live_server)
+ 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