Skip to content

Commit

Permalink
fix(wrapper/cards): change hook for Default card component (#2942)
Browse files Browse the repository at this point in the history
Co-authored-by: ririxi <[email protected]>
  • Loading branch information
harbassan and rxri authored Apr 7, 2024
1 parent b82f6e2 commit 32c7006
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,9 @@ 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: functionModules.find(m => m?.toString().includes('"card-click-handler"')),
Default: functionModules.find(
m => m.toString().includes("?highlight") && m.toString().includes("headerText") && m.toString().includes("imageContainer")
),
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 32c7006

Please sign in to comment.