forked from 0x2620/pandora
include path in url not error
This commit is contained in:
parent
4eff60e25f
commit
b46aa6625f
1 changed files with 2 additions and 2 deletions
|
@ -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) {}
|
||||||
|
|
Loading…
Reference in a new issue