mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
pad: Include .js URL in /jserror
error report
This commit is contained in:
parent
2a8e11a49a
commit
d680405f58
1 changed files with 10 additions and 1 deletions
|
@ -512,7 +512,16 @@ function setupGlobalExceptionHandler() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//send javascript errors to the server
|
//send javascript errors to the server
|
||||||
var errObj = {errorInfo: JSON.stringify({errorId: errorId, msg: msg, url: window.location.href, linenumber: linenumber, userAgent: navigator.userAgent})};
|
var errObj = {
|
||||||
|
errorInfo: JSON.stringify({
|
||||||
|
errorId,
|
||||||
|
msg,
|
||||||
|
url: window.location.href,
|
||||||
|
source: url,
|
||||||
|
linenumber,
|
||||||
|
userAgent: navigator.userAgent,
|
||||||
|
}),
|
||||||
|
};
|
||||||
var loc = document.location;
|
var loc = document.location;
|
||||||
var url = loc.protocol + "//" + loc.hostname + ":" + loc.port + "/" + loc.pathname.substr(1, loc.pathname.indexOf("/p/")) + "jserror";
|
var url = loc.protocol + "//" + loc.hostname + ":" + loc.port + "/" + loc.pathname.substr(1, loc.pathname.indexOf("/p/")) + "jserror";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue