Fix for javascript error reporting
This commit is contained in:
parent
e8ca73a801
commit
4905a99997
@ -2,7 +2,7 @@
|
|||||||
window.onerror = function(message, url, lineNumber, column, errorObj) {
|
window.onerror = function(message, url, lineNumber, column, errorObj) {
|
||||||
//save error and send to server for example.
|
//save error and send to server for example.
|
||||||
var request = new XMLHttpRequest();
|
var request = new XMLHttpRequest();
|
||||||
request.open('POST', '/js_error', true);
|
request.open('POST', '/js_error/', true);
|
||||||
request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
|
request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
|
||||||
request.send(
|
request.send(
|
||||||
'message=' + encodeURI(message) +
|
'message=' + encodeURI(message) +
|
||||||
|
@ -192,6 +192,7 @@ code {
|
|||||||
max-width: $max-table-width;
|
max-width: $max-table-width;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
line-height: 1.25em;
|
||||||
|
|
||||||
&.signature {
|
&.signature {
|
||||||
margin: 0 0 1em;
|
margin: 0 0 1em;
|
||||||
@ -232,7 +233,6 @@ pre {
|
|||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-bottom: 1px solid #DDD;
|
border-bottom: 1px solid #DDD;
|
||||||
//white-space: nowrap;
|
|
||||||
|
|
||||||
&:nth-child(odd) {
|
&:nth-child(odd) {
|
||||||
margin-right: -3px;
|
margin-right: -3px;
|
||||||
@ -295,6 +295,7 @@ h3 {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
|
||||||
th, td {
|
th, td {
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user