From cccabf45b8fd7dd1c971aa0388a7552c6f2f0b51 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 3 Jun 2021 15:03:16 -0400 Subject: [PATCH] pad: Move error message to the top of the gritter box --- src/static/js/pad_utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/static/js/pad_utils.js b/src/static/js/pad_utils.js index 8a450d6fb..48f0624e9 100644 --- a/src/static/js/pad_utils.js +++ b/src/static/js/pad_utils.js @@ -331,12 +331,12 @@ padutils.setupGlobalExceptionHandler = () => { $('

') .text('If the problem persists, please send this error message to your webmaster:'), $('

').css('text-align', 'left').css('font-size', '.8em').css('margin-top', '1em') + .append($('').addClass('error-msg').text(msg)).append($('
')) + .append(txt(`at ${url} at line ${linenumber}`)).append($('
')) .append(txt(`ErrorId: ${errorId}`)).append($('
')) .append(txt(type)).append($('
')) .append(txt(`URL: ${window.location.href}`)).append($('
')) - .append(txt(`UserAgent: ${navigator.userAgent}`)).append($('
')) - .append($('').addClass('error-msg').text(msg)).append($('
')) - .append(txt(`at ${url} at line ${linenumber}`)).append($('
')), + .append(txt(`UserAgent: ${navigator.userAgent}`)).append($('
')), ]; $.gritter.add({