From dd53a39c4bfcd89720a4f0ba50c3add33a55aa1d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 3 Jul 2018 08:32:55 +0200 Subject: [PATCH] Javascript errors are reported --- assets/js/common/system.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/common/system.js b/assets/js/common/system.js index c9cfb56e..da60d0b3 100644 --- a/assets/js/common/system.js +++ b/assets/js/common/system.js @@ -19,6 +19,11 @@ ComunicWeb.common.system = { //Start init ComunicWeb.debug.logMessage("Start initialization..."); + //Enable error reporting + window.addEventListener("error", function(e){ + ComunicWeb.common.error.syntaxtError(e.error); + }); + //Disable tooltips $(function () { $(document.body).tooltip("disable");