mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +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){
|
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",
|
||||||
|
Loading…
Reference in New Issue
Block a user