Skip to content

Commit

Permalink
Update hazy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Astromations committed Jul 1, 2023
1 parent cc276f5 commit a39888d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions hazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,19 @@
"enablePanelSizeCoordination"
];

// Loop over the array
for (const feature of features) {
// Ignore if feature not present
if (!parsedObject[feature]) continue;

// Change value if disabled
if (!parsedObject[feature].value) {
parsedObject[feature].value = true;
reload = true;
if (!localStorage.getItem('Hazy Sidebar Activated')) {
localStorage.setItem('Hazy Sidebar Activated', true);
for (const feature of features) {
// Ignore if feature not present
if (!parsedObject[feature]) continue;

// Change value if disabled
if (!parsedObject[feature].value) {
parsedObject[feature].value = true;
reload = true;
}
}
}
}

localStorage.setItem("spicetify-exp-features", JSON.stringify(parsedObject));
if (reload) {
Expand Down

0 comments on commit a39888d

Please sign in to comment.