Skip to content

Commit

Permalink
fix(wrapper/cards): use functionModules instead of modules (#2745)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored Jan 1, 2024
1 parent 33fa1ee commit d22238d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ window.Spicetify = {
Chip: modules.find(m => m?.render?.toString().includes("invertedDark") && m?.render?.toString().includes("isUsingKeyboard")),
Toggle: functionModules.find(m => m.toString().includes("onSelected") && m.toString().includes('type:"checkbox"')),
Cards: {
Default: modules.find(m => m?.toString().includes('"card-click-handler"')),
Hero: modules.find(m => m?.toString().includes('"herocard-click-handler"')),
Default: functionModules.find(m => m?.toString().includes('"card-click-handler"')),
Hero: functionModules.find(m => m?.toString().includes('"herocard-click-handler"')),
CardImage: functionModules.find(m => m.toString().includes("isHero") && m.toString().includes("withWaves")),
...Object.fromEntries(cards)
},
Expand Down

0 comments on commit d22238d

Please sign in to comment.