From 7aa13e5debdf34232bd0a97b5821e1a43caa7810 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 16 Jan 2008 00:19:38 +0000 Subject: only catch errs on live.... --- itjs/boot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'itjs') 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 -- cgit v1.2.3