question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

params function not working

See original GitHub issue

Hey guys,

Been implementing this wonderful lite-youtube solution on my clients site to much success. Recently when asked to add the rel=0 param to the videos I followed the instructions listed and nothing happens. I also tried a load of other parameters to no success either. Could anyone assist me in getting the params to work 😃

<lite-youtube videoid="arygCLXYB7Y" params="rel=0"> </lite-youtube>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
justinribeirocommented, Aug 21, 2021

You’re using an old version that didn’t support the params attr: ss-2021-08-20-justinribeiro-005

update your include line to:

<script type="module" 
src="https://cdn.jsdelivr.net/npm/@justinribeiro/lite-youtube@0.9.1/lite-youtube.js">
</script> 

and you’ll be golden (seen her with an devTools override): ss-2021-08-20-justinribeiro-004

0reactions
yeaskecommented, Sep 8, 2021

The CDN link in readme still shows old version. I guess that is causing this confusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PowerApps Param() function not working
Solved: I am wondering if anyone can assist with a PowerApps issue I am currently trying to resolve. Background I am trying to...
Read more >
Why is my function with parameter not working - Stack Overflow
I am new to java script. And i am trying to pass a parameter to function. But the onclick event ...
Read more >
Function arguments - Manual - PHP
A function may define default values for arguments using syntax similar to assigning a variable. The default is used only when the parameter...
Read more >
Arrow function expressions - JavaScript - MDN Web Docs
An arrow function expression is a compact alternative to a ... body syntax (params) => { object: literal } does not work as...
Read more >
JavaScript Function Parameters - W3Schools
Function parameters are the names listed in the function definition. Function arguments are the real values passed to (and received by) the function....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found