1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2025-07-16 17:31:20 -03:00
parent ed163a0902
commit e87a82b350

View file

@ -200,7 +200,11 @@ if ($removeAnimation || !empty($advancedCustom->disableAnimations)) {
<script>
function shareCarouselShorts() {
$('.ShortsPlayerOverlay').hide();
iframe[0].contentWindow.postMessage('togglePlayerSocial', '*');
if (iframe && iframe[0] && iframe[0].contentWindow) {
iframe[0].contentWindow.postMessage('togglePlayerSocial', '*');
} else {
console.warn('iframe not available for postMessage');
}
}
</script>
<?php