Skip to content

Commit a8af9c6

Browse files
authored
-Fixed typo on 'mute' parameter of youtube video. (#33)
1 parent 5b4c700 commit a8af9c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-lite-youtube-embed",
3-
"version": "2.0.13",
3+
"version": "2.0.14",
44
"description": "A private by default, faster and cleaner YouTube embed component for React applications",
55
"main": "dist/index.jsx",
66
"module": "dist/index.es.jsx",

β€Žsrc/lib/index.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function LiteYouTubeEmbed(props: LiteYouTube) {
5151
? "https://www.youtube.com"
5252
: "https://www.youtube-nocookie.com";
5353

54-
const muted = props.muted ? "&muted=1" : "";
54+
const muted = props.muted ? "&mute=1" : "";
5555
const iframeSrc = !props.playlist
5656
? `${ytUrl}/embed/${videoId}?autoplay=1${muted}${paramsImp}`
5757
: `${ytUrl}/embed/videoseries?autoplay=1${muted}&list=${videoId}${paramsImp}`;

0 commit comments

Comments
Β (0)