Skip to content

Conversation

rlueder
Copy link
Contributor

@rlueder rlueder commented May 20, 2025

This PR fixes an issue introduced on this PR where props.params are not being passed to the iframe src parameter:

<LiteYouTubeEmbed params="start=1160&foo=bar" />

BEFORE FIX:

<iframe src="https://www.youtube-nocookie.com/embed/L2vS_050c-M?"></iframe> // <-- notice no params are passed to src

AFTER FIX:

<iframe src="https://www.youtube-nocookie.com/embed/L2vS_050c-M?start=1160&amp;foo=bar"></iframe> // <-- props.params are correctly passed to src

I also added .prettierrc and .eslintrc so my IDE would respect the existing formatting rules (though there are still some differences related to single vs double quotes between tests and other files, I didn't want to add too many changes related to formatting)

@ibrahimcesar
Copy link
Owner

Can you resolve the conflicts with latest version so I can merge? Thanks!

@rlueder
Copy link
Contributor Author

rlueder commented Aug 19, 2025

Closed in favor of #130 which includes the same fix but touches less files. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants