- Do not log "Script Error."

This commit is contained in:
Paulo Gustavo Veiga 2012-09-23 10:30:42 -03:00
parent a42c54678a
commit 85d41300bf

View File

@ -32,14 +32,19 @@ function buildDesigner(options) {
});
window.onerror = function (message, url, lineNo) {
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"},