mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +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);
|
||||
|
||||
// Starting modules also hides any modules that have requested to be initially hidden
|
||||
for (let n in moduleObjects) {
|
||||
let thisModule = moduleObjects[n];
|
||||
|
||||
for (let thisModule of moduleObjects) {
|
||||
if (thisModule.data.hiddenOnStartup) {
|
||||
Log.info("Initially hiding " + thisModule.name);
|
||||
thisModule.hide();
|
||||
|
Loading…
x
Reference in New Issue
Block a user