window.onerror = function (msg, url, linenumber) { // Monitoramento de erros agora é feito pelo Azure if (location.host.indexOf('localhost:') > -1) { alert("erro.js " + msg + " URL: " + url + " Linha: " + linenumber); } return true; };