ComunicWeb/assets/js/common/debug.js
2017-01-08 15:54:25 +01:00

20 lines
426 B
JavaScript

/**
* Debug functions
*
* @author Pierre HUBERT
*/
/**
* Display message on browser console
*
* @param {String} message The message to show on browser console
*/
ComunicWeb.debug.logMessage = function(message){
//We check we are not in production mode
if(ComunicWeb.__config.productionMode != 1){
console.log("ComunicWebApp debug message", message);
}
//Everything seems ok
return 0;
};