Do not display JS errors in production mode.

This commit is contained in:
Pierre HUBERT 2018-11-24 11:24:31 +01:00
parent 672cbc1409
commit d49b04e6fb

View File

@ -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",