mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Do not display JS errors in production mode.
This commit is contained in:
		@@ -109,6 +109,10 @@ ComunicWeb.common.error.pageNotFound = function(additionnalData, targetElement){
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
ComunicWeb.common.error.syntaxtError = function(error, additional){
 | 
					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
 | 
						//Create a modal dialog to report error
 | 
				
			||||||
	var dialog = ComunicWeb.common.messages.createDialogSkeleton({
 | 
						var dialog = ComunicWeb.common.messages.createDialogSkeleton({
 | 
				
			||||||
		type: "danger",
 | 
							type: "danger",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user