diff options
Diffstat (limited to 'itjs/boot.js')
-rw-r--r-- | itjs/boot.js | 4 |
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 |