mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Do not display JS errors in production mode.
This commit is contained in:
parent
672cbc1409
commit
d49b04e6fb
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user