From e0a957b3f66f1fb35060e51c63f0a271d9a7d938 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 5 Mar 2017 10:30:49 +0300 Subject: use try/catch block in updatefeedlist remove reporting function from exception dialog --- js/functions.js | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'js/functions.js') diff --git a/js/functions.js b/js/functions.js index 134ce0b18..ddb27cba1 100755 --- a/js/functions.js +++ b/js/functions.js @@ -55,34 +55,19 @@ function exception_error(e, e_compat) { var msg = e.toString(); - msg += "

"+ __("The error will be reported to the configured log destination.") + - "

"; - console.error(msg); - var content = "
" + - "
" + msg + "
"; - - content += "
"; - - content += ""; - content += ""; + var content = "

" + msg + "

"; - if (e) { + if (e.stack) { content += "
Stack trace:
" + ""; } - content += ""; - content += "
"; content += "
"; - content += " "; content += ""; @@ -95,22 +80,6 @@ function exception_error(e, e_compat) { id: "exceptionDlg", title: "Unhandled exception", style: "width: 600px", - report: function() { - if (confirm(__("Are you sure to report this exception to tt-rss.org? The report will include information about your web browser and tt-rss configuration. Your IP will be saved in the database."))) { - - document.forms['exceptionForm'].params.value = $H({ - browserName: navigator.appName, - browserVersion: navigator.appVersion, - browserPlatform: navigator.platform, - browserCookies: navigator.cookieEnabled, - ttrssVersion: __ttrss_version, - initParams: JSON.stringify(init_params), - }).toQueryString(); - - document.forms['exceptionForm'].submit(); - - } - }, content: content}); dialog.show(); -- cgit v1.2.3-54-g00ecf