Skip to content

Commit

Permalink
Update assets/vidstack_helper.js
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
skerbis and coderabbitai[bot] authored Sep 27, 2024
1 parent befd829 commit 7e04973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/vidstack_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ document.addEventListener('DOMContentLoaded', function() {
player.style.display = '';
player.setAttribute('src', `${platform}/${videoId}`);
const placeholder = player.previousElementSibling;
if (placeholder && placeholder.classList.contains('consent-placeholder')) {
if (placeholder?.classList.contains('consent-placeholder')) {
placeholder.style.display = 'none';
}
}
Expand Down

0 comments on commit 7e04973

Please sign in to comment.