You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The obj.attr('data-pe-show-related') returns a string so the if statement always fails if
you are using attributes for driving your prettyembed.
Below is a suggested fix to move the attr to be evaluated against string vs boolean for the attribute string creation.
Thanks @pdramos1 - I'll be pushing an updated shortly (v1.1.1) to address a few outstanding issues. I'll be testing out your suggested fix and pull it in if all goes well. Thanks for the help!
The obj.attr('data-pe-show-related') returns a string so the if statement always fails if
you are using attributes for driving your prettyembed.
Below is a suggested fix to move the attr to be evaluated against string vs boolean for the attribute string creation.
if ( (obj.attr('data-pe-show-related') === 'false') || (options.showRelated === false) ) { playerOptions += '&rel=0'; } else { playerOptions += '&rel=1'; }
The text was updated successfully, but these errors were encountered: