pad: Move error message to the top of the gritter box
This commit is contained in:
parent
b2e94685fb
commit
cccabf45b8
1 changed files with 3 additions and 3 deletions
|
@ -331,12 +331,12 @@ padutils.setupGlobalExceptionHandler = () => {
|
||||||
$('<p>')
|
$('<p>')
|
||||||
.text('If the problem persists, please send this error message to your webmaster:'),
|
.text('If the problem persists, please send this error message to your webmaster:'),
|
||||||
$('<div>').css('text-align', 'left').css('font-size', '.8em').css('margin-top', '1em')
|
$('<div>').css('text-align', 'left').css('font-size', '.8em').css('margin-top', '1em')
|
||||||
|
.append($('<b>').addClass('error-msg').text(msg)).append($('<br>'))
|
||||||
|
.append(txt(`at ${url} at line ${linenumber}`)).append($('<br>'))
|
||||||
.append(txt(`ErrorId: ${errorId}`)).append($('<br>'))
|
.append(txt(`ErrorId: ${errorId}`)).append($('<br>'))
|
||||||
.append(txt(type)).append($('<br>'))
|
.append(txt(type)).append($('<br>'))
|
||||||
.append(txt(`URL: ${window.location.href}`)).append($('<br>'))
|
.append(txt(`URL: ${window.location.href}`)).append($('<br>'))
|
||||||
.append(txt(`UserAgent: ${navigator.userAgent}`)).append($('<br>'))
|
.append(txt(`UserAgent: ${navigator.userAgent}`)).append($('<br>')),
|
||||||
.append($('<b>').addClass('error-msg').text(msg)).append($('<br>'))
|
|
||||||
.append(txt(`at ${url} at line ${linenumber}`)).append($('<br>')),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$.gritter.add({
|
$.gritter.add({
|
||||||
|
|
Loading…
Reference in a new issue