justinribeiro / lite-youtube

The fastest little YouTube web component on this side of the internet. The shadow dom web component version of Paul's lite-youtube-embed.
https://www.npmjs.com/package/@justinribeiro/lite-youtube
MIT License
836 stars 63 forks source link

Uncaught (in promise) Error: Orphaned iframed #99

Closed looloosha closed 9 months ago

looloosha commented 9 months ago

The library works without a hitch but I am getting an error in my console when the iframe is loaded into DOM. image

Any thoughts on what this could be?

Here's my HTML structure: `

` Any ideas what this could be? I can't find ANYTHING online :(
justinribeiro commented 9 months ago

The "web-client-content-script.js" is typically part of a browser extension (from which extension, I do not know in your case); based on the code you shared, things work fine (well, you should remove the double "@@"'s for the script).

drew-forsberg commented 9 months ago

Thanks, Justin! FYI, the double @ is just because this code is in an ASP.NET Razor page, which requires @@ to escape the original single @.

looloosha commented 9 months ago

Turns out you were right about it being an extension causing the issue! It was LastPass extension in this case. Thank you tremendously @justinribeiro !!!