mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +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