pad: Move error message to the top of the gritter box

pull/5045/head
Richard Hansen 2021-06-03 15:03:16 -04:00
parent b2e94685fb
commit cccabf45b8
1 changed files with 3 additions and 3 deletions

View File

@ -331,12 +331,12 @@ padutils.setupGlobalExceptionHandler = () => {
$('<p>')
.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')
.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(type)).append($('<br>'))
.append(txt(`URL: ${window.location.href}`)).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>')),
.append(txt(`UserAgent: ${navigator.userAgent}`)).append($('<br>')),
];
$.gritter.add({