We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125e8fe commit 6706892Copy full SHA for 6706892
1 file changed
src/lib/index.tsx
@@ -327,7 +327,9 @@ function LiteYouTubeEmbedComponent(
327
...(props.muted ? { mute: "1" } : {}),
328
...(shouldAddAutoplayParam ? { autoplay: "1" } : {}),
329
...(props.enableJsApi ? { enablejsapi: "1" } : {}),
330
- ...(props.enableJsApi && typeof window !== 'undefined' ? { origin: window.location.origin } : {}),
+ ...(props.enableJsApi && typeof window !== "undefined"
331
+ ? { origin: window.location.origin }
332
+ : {}),
333
...(props.playlist ? { list: videoId } : {}),
334
});
335
0 commit comments