diff --git a/src/static/js/pad_utils.js b/src/static/js/pad_utils.js index bcfa95cc6..c2ff6fd0e 100644 --- a/src/static/js/pad_utils.js +++ b/src/static/js/pad_utils.js @@ -515,12 +515,13 @@ function setupGlobalExceptionHandler() { globalExceptionHandler = function test (msg, url, linenumber) { var errorId = randomString(20); + var userAgent = padutils.escapeHtml(navigator.userAgent); if ($("#editorloadingbox").attr("display") != "none"){ //show javascript errors to the user $("#editorloadingbox").css("padding", "10px"); $("#editorloadingbox").css("padding-top", "45px"); $("#editorloadingbox").html("