mirror of https://github.com/xwiki-labs/cryptpad
Merge branch 'appconfig_ui' of github.com:cryptpad/cryptpad into appconfig_ui
This commit is contained in:
commit
ea64d9b068
|
@ -227,8 +227,8 @@ commands.SET_SUPPORT_MAILBOX = makeGenericSetter('supportMailbox', function (arg
|
||||||
|
|
||||||
commands.DISABLE_APPS = function (Env, args) {
|
commands.DISABLE_APPS = function (Env, args) {
|
||||||
if (!Array.isArray(args)) { throw new Error("INVALID_ARGS"); }
|
if (!Array.isArray(args)) { throw new Error("INVALID_ARGS"); }
|
||||||
const appsToDisable = args;
|
if (JSON.stringify(args) === JSON.stringify(Env.appsToDisable)) { return false; }
|
||||||
Env.appsToDisable = appsToDisable;
|
Env.appsToDisable = args;
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue