From 82fbf0e36d26aa672964d1f908e4f05ad6bef797 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Wed, 16 Jan 2008 08:40:48 +0000 Subject: We don't always have an env --- itjs/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3