1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
This commit is contained in:
Daniel Neto 2023-08-24 09:18:10 -03:00
parent ab656f4e43
commit d329a1d0ec

View file

@ -3923,6 +3923,7 @@ function closeFullscreenVideo() {
} }
function addCloseButtonInVideo() { function addCloseButtonInVideo() {
try {
// If either function exists, add a close button inside videojs // If either function exists, add a close button inside videojs
if (typeof window.parent.closeFullscreenVideo === "function") { if (typeof window.parent.closeFullscreenVideo === "function") {
if(typeof player !== 'object'){ if(typeof player !== 'object'){
@ -3931,13 +3932,20 @@ function addCloseButtonInVideo() {
} }
addCloseButton($(player.el())); addCloseButton($(player.el()));
} }
} catch (error) {
}
} }
function addCloseButtonInPage() { function addCloseButtonInPage() {
try {
// If either function exists, add a close button inside videojs // If either function exists, add a close button inside videojs
if (typeof window.parent.closeFullscreenVideo === "function") { if (typeof window.parent.closeFullscreenVideo === "function") {
addCloseButton($('body')); addCloseButton($('body'));
} }
} catch (error) {
}
} }
function addCloseButton(elementToAppend) { function addCloseButton(elementToAppend) {