From c7c03817d05c05d5bc3f1a59ee0b06a47048ff4b Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Mon, 14 Dec 2015 11:34:16 -0800 Subject: Adding error bar message when console error detected --- web/templates/head.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/templates') diff --git a/web/templates/head.html b/web/templates/head.html index be4ed2b25..7ffeeec7b 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -85,6 +85,11 @@ type: 'POST', data: JSON.stringify(l) }); + + if (window.mm_config.EnableDeveloper === 'true') { + window.ErrorStore.storeLastError('DEVELOPER MODE: A javascript error has occured. Please use the javascript console to capture and report the error (row: ' + line + ' col: ' + column + ').'); + window.ErrorStore.emitChange(); + } } -- cgit v1.2.3-1-g7c22