This commit is contained in:
parent
d1972542b7
commit
6a1a990e57
@ -2,7 +2,13 @@ const TwitchEmbed = ({ link }: { link: string }) => {
|
||||
const channel = link.split("/").slice(-1);
|
||||
|
||||
const args = `?channel=${channel}&parent=${window.location.hostname}&muted=true`;
|
||||
return <iframe src={`https://player.twitch.tv/${args}`} className="w-max" allowFullScreen={true} credentialless=""></iframe>;
|
||||
return (
|
||||
<iframe
|
||||
src={`https://player.twitch.tv/${args}`}
|
||||
className="w-max"
|
||||
allowFullScreen={true}
|
||||
credentialless=""></iframe>
|
||||
);
|
||||
};
|
||||
|
||||
export default TwitchEmbed;
|
||||
|
Loading…
Reference in New Issue
Block a user