Add a dev mode to facilitate debugging

This commit is contained in:
yflory
2019-01-31 15:27:01 +01:00
parent 07cd0b21b6
commit 4abed38bb1
3 changed files with 13 additions and 1 deletions

View File

@@ -587,6 +587,10 @@ define([
console.error("Can't check permissions for the app");
}
try {
window.CP_DEV_MODE = ctx.metadataMgr.getPrivateData().devMode;
} catch (e) {}
ctx.sframeChan.on('EV_LOADING_ERROR', function (err) {
if (err === 'DELETED') {
var msg = Messages.deletedError + '<br>' + Messages.errorRedirectToHome;