Skip to content

Commit

Permalink
fix: use different check for target in shouldAdd (spicetify#2853)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored Feb 20, 2024
1 parent 5c54245 commit 5f77de5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,8 @@ Spicetify.ContextMenuV2 = (() => {
})();

Spicetify.Menu = (() => {
const shouldAdd = (_, trigger, target) => trigger === "click" && target.getAttribute("data-testid")?.endsWith("user-widget-link");
const shouldAdd = (_, trigger, target) =>
trigger === "click" && (target.classList.contains("main-userWidget-boxCondensed") || target.classList.contains("main-userWidget-box"));

class Item extends Spicetify.ContextMenuV2.Item {
constructor(children, isEnabled, onClick, leadingIcon) {
Expand Down

0 comments on commit 5f77de5

Please sign in to comment.