mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
Fixed unnecessarily verbose way of looping thanks to @rejas :)
This commit is contained in:
parent
b72556b9a9
commit
8f2980c23d
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue