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:
@@ -34,6 +34,7 @@ module.exports = {
|
||||
|
||||
// return if postion is on modulePositions Array (true/false)
|
||||
moduleHasValidPosition (position) {
|
||||
if (config.allowCustomModulePositions) return true;
|
||||
if (this.getAvailableModulePositions().indexOf(position) === -1) return false;
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user