Skip to content

Commit

Permalink
fix(wrapper): revert CardImage component (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored May 2, 2024
1 parent 1723d79 commit ffdb5c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,12 @@ window.Spicetify = {
m => m.toString().includes("?highlight") && m.toString().includes("headerText") && m.toString().includes("imageContainer")
),
Hero: functionModules.find(m => m?.toString().includes('"herocard-click-handler"')),
CardImage: reactComponentsUI.CardImage,
CardImage: functionModules.find(
m =>
m.toString().includes("isHero") &&
(m.toString().includes("withWaves") || m.toString().includes("isCircular")) &&
m.toString().includes("imageWrapper")
),
...Object.fromEntries(cards)
},
Router: functionModules.find(m => m.toString().includes("navigationType") && m.toString().includes("static")),
Expand Down

0 comments on commit ffdb5c1

Please sign in to comment.