mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-10-10 12:53:14 +02:00
update tidal embed
This commit is contained in:
@@ -40,10 +40,10 @@ const embeds: { regexp: RegExp; render: (match: RegExpMatchArray, trusted: boole
|
|||||||
},
|
},
|
||||||
// Tidal
|
// Tidal
|
||||||
{
|
{
|
||||||
regexp: /https?:\/\/tidal\.com\/track\/(\d+)/im,
|
regexp: /https?:\/\/tidal\.com(\/browse)?\/track\/(\d+)/im,
|
||||||
render: (match) => (
|
render: (match) => (
|
||||||
<iframe
|
<iframe
|
||||||
src={`https://embed.tidal.com/tracks/${match[1]}?disableAnalytics=true`}
|
src={`https://embed.tidal.com/tracks/${match[2]}?disableAnalytics=true`}
|
||||||
width="100%"
|
width="100%"
|
||||||
height="96"
|
height="96"
|
||||||
></iframe>
|
></iframe>
|
||||||
|
Reference in New Issue
Block a user