From d49b04e6fbbf34334d08a5d069c473deed6a1e28 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 24 Nov 2018 11:24:31 +0100 Subject: [PATCH] Do not display JS errors in production mode. --- assets/js/common/errors.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/common/errors.js b/assets/js/common/errors.js index 1507f46c..6d429e1b 100644 --- a/assets/js/common/errors.js +++ b/assets/js/common/errors.js @@ -109,6 +109,10 @@ ComunicWeb.common.error.pageNotFound = function(additionnalData, targetElement){ */ ComunicWeb.common.error.syntaxtError = function(error, additional){ + //Do not do anything in production mode + if(ComunicWeb.__config.productionMode == true) + return; + //Create a modal dialog to report error var dialog = ComunicWeb.common.messages.createDialogSkeleton({ type: "danger",