From 071ca5aa9632c519f8eade427a7eb8241a7182ae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 11 Dec 2018 12:45:05 +0300 Subject: Error.report: use JS template strings --- js/AppBase.js | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'js/AppBase.js') diff --git a/js/AppBase.js b/js/AppBase.js index 398acc31d..4e0bdc765 100644 --- a/js/AppBase.js +++ b/js/AppBase.js @@ -414,18 +414,15 @@ define(["dojo/_base/declare"], function (declare) { if (dijit.byId("exceptionDlg")) dijit.byId("exceptionDlg").destroyRecursive(); - let content = "

" + message + "

"; - - if (error.stack) - content += "
Stack trace:
" + - ""; - - content += "
"; - - content += ""; - content += "
"; + let content = `
+

${message}

+
Stack trace:
+ +
+ +
+
`; const dialog = new dijit.Dialog({ id: "exceptionDlg", -- cgit v1.2.3-54-g00ecf