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");