Skip to content

Commit a9322b5

Browse files
committed
[open-in-app] add compatibility for play-on-spotify
1 parent b03cfce commit a9322b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/open-in-app/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ async function onClick(e) {
9292
// so find the closest anchor element
9393
const anchor = e?.target?.closest("a");
9494
if (!anchor?.href || !getEnabledApp(anchor.href)) return;
95+
const playOnSpotifyButton = e?.target?.closest(".ioj4-pos-buttons");
96+
if (playOnSpotifyButton) return;
9597

9698
e.preventDefault();
9799
e.stopImmediatePropagation();

0 commit comments

Comments
 (0)