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) { window.onerror = function(error, url, line) {
try { try {
!isMSIE && !/^resource:/.test(url) && pandora.api.log({ !isMSIE && !/^resource:/.test(url) && pandora.api.log({
text: error + ' (' + document.location.pathname + ')', text: error,
url: url, url: document.location.pathname + ' at ' + url,
line: line line: line
}); });
} catch(e) {} } catch(e) {}