mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Fix iframe load
This commit is contained in:
parent
68dd011b8a
commit
d39b2471a5
1 changed files with 11 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue