mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 21:00:57 +00:00
allow custom module positions by setting allowCustomModulePositions
… (#3506)
… in `config.js` fixes #3504, related to https://github.com/MagicMirrorOrg/MagicMirror/pull/3445
This commit is contained in:
@@ -50,7 +50,7 @@ const Loader = (function () {
|
||||
* @returns {object[]} module data as configured in config
|
||||
*/
|
||||
const getAllModules = function () {
|
||||
const AllModules = config.modules.filter((module) => (module.module !== undefined) && (MM.getAvailableModulePositions.indexOf(module.position) > -1 || typeof (module.position) === "undefined"));
|
||||
const AllModules = config.modules.filter((module) => (module.module !== undefined) && (MM.getAvailableModulePositions.indexOf(module.position) > -1 || typeof (module.position) === "undefined" || config.allowCustomModulePositions));
|
||||
return AllModules;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user