summaryrefslogtreecommitdiffstats
path: root/web/templates
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-12-14 11:34:16 -0800
committer=Corey Hulen <corey@hulen.com>2015-12-14 11:34:16 -0800
commitc7c03817d05c05d5bc3f1a59ee0b06a47048ff4b (patch)
treee66774920eedebe63d7afe072a85e5012e265d0d /web/templates
parentf5ec973cba4c224de5ba75b56aad447f715b9d6b (diff)
downloadchat-c7c03817d05c05d5bc3f1a59ee0b06a47048ff4b.tar.gz
chat-c7c03817d05c05d5bc3f1a59ee0b06a47048ff4b.tar.bz2
chat-c7c03817d05c05d5bc3f1a59ee0b06a47048ff4b.zip
Adding error bar message when console error detected
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/head.html5
1 files changed, 5 insertions, 0 deletions
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();
+ }
}
</script>