From 85d41300bf5be4190c47c6ef8cff9a5144e100d4 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 23 Sep 2012 10:30:42 -0300 Subject: [PATCH] - Do not log "Script Error." --- wise-editor/src/main/webapp/js/editor.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wise-editor/src/main/webapp/js/editor.js b/wise-editor/src/main/webapp/js/editor.js index 33d97beb..9bbb02d0 100644 --- a/wise-editor/src/main/webapp/js/editor.js +++ b/wise-editor/src/main/webapp/js/editor.js @@ -32,14 +32,19 @@ function buildDesigner(options) { }); window.onerror = function (message, url, lineNo) { - // Log error message ... + if(message==="Script error." && lineNo==0){ + // Log error message ... + // http://stackoverflow.com/questions/5913978/cryptic-script-error-reported-in-javascript-in-chrome-and-firefox + return; + } + if (window.waitDialog) { window.waitDialog.close.delay(1000, window.waitDialog); window.waitDialog = null; } - var req = new Request({ + new Request({ method:'post', url:"/service/logger/editor", headers:{"Content-Type":"application/json", "Accept":"application/json"},