1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Fix iframe load

This commit is contained in:
Daniel 2022-01-25 14:55:37 -03:00
parent 68dd011b8a
commit d39b2471a5

View file

@ -1352,15 +1352,17 @@ function avideoModalIframeWithClassName(url, className, updateURL) {
avideoModalIframeFullScreenOriginalURL = false;
}
});
$('body > div.swal-overlay iframe').load(function(){
clearTimout(avideoModalIframeWithClassNameTimeout);
avideoModalIframeRemove();
});
avideoModalIframeWithClassNameTimeout = setTimeout(function () {
// is not loaded
url = addGetParam(url, 'avideoIframe', 0);
document.location = url;
}, 5000);
setTimeout(function () {
$('body > div.swal-overlay iframe').load(function(){
clearTimout(avideoModalIframeWithClassNameTimeout);
avideoModalIframeRemove();
});
avideoModalIframeWithClassNameTimeout = setTimeout(function () {
// is not loaded
url = addGetParam(url, 'avideoIframe', 0);
document.location = url;
}, 5000);
}, 1000);
}
function checkIframeLoaded(id) {