mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Fixed unnecessarily verbose way of looping thanks to @rejas :)
This commit is contained in:
parent
b72556b9a9
commit
8f2980c23d
@ -56,9 +56,7 @@ var Loader = (function () {
|
|||||||
MM.modulesStarted(moduleObjects);
|
MM.modulesStarted(moduleObjects);
|
||||||
|
|
||||||
// Starting modules also hides any modules that have requested to be initially hidden
|
// Starting modules also hides any modules that have requested to be initially hidden
|
||||||
for (let n in moduleObjects) {
|
for (let thisModule of moduleObjects) {
|
||||||
let thisModule = moduleObjects[n];
|
|
||||||
|
|
||||||
if (thisModule.data.hiddenOnStartup) {
|
if (thisModule.data.hiddenOnStartup) {
|
||||||
Log.info("Initially hiding " + thisModule.name);
|
Log.info("Initially hiding " + thisModule.name);
|
||||||
thisModule.hide();
|
thisModule.hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user