aboutsummaryrefslogtreecommitdiffstats
path: root/website/harness/ed.js
diff options
context:
space:
mode:
Diffstat (limited to 'website/harness/ed.js')
-rw-r--r--website/harness/ed.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/website/harness/ed.js b/website/harness/ed.js
index 8d6f44408..e2a27c6a3 100644
--- a/website/harness/ed.js
+++ b/website/harness/ed.js
@@ -19,9 +19,10 @@
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//Error Detector
-
-window.onerror = function(errorMsg, url, lineNumber) {
- window.iframeError = errorMsg;
+if (this.window!==undefined) { //for console support
+ window.onerror = function(errorMsg, url, lineNumber) {
+ window.iframeError = errorMsg;
+ }
}
//This doesn't work with early errors in current versions of Opera