include path in url not error

This commit is contained in:
j 2013-10-22 18:40:02 +00:00
parent 4eff60e25f
commit b46aa6625f

View file

@ -24,8 +24,8 @@ appPanel
window.onerror = function(error, url, line) {
try {
!isMSIE && !/^resource:/.test(url) && pandora.api.log({
text: error + ' (' + document.location.pathname + ')',
url: url,
text: error,
url: document.location.pathname + ' at ' + url,
line: line
});
} catch(e) {}