1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00

Remove error

This commit is contained in:
Daniel 2022-02-22 11:18:53 -03:00
parent bbffba7cea
commit f169891d66

View file

@ -1353,10 +1353,14 @@ function avideoModalIframeWithClassName(url, className, updateURL) {
}
});
setTimeout(function () {
$('body > div.swal-overlay iframe').load(function () {
clearTimout(avideoModalIframeWithClassNameTimeout);
avideoModalIframeRemove();
});
try {
$('body > div.swal-overlay iframe').load(function () {
clearTimout(avideoModalIframeWithClassNameTimeout);
avideoModalIframeRemove();
});
} catch (e) {
}
avideoModalIframeWithClassNameTimeout = setTimeout(function () {
// is not loaded
url = addGetParam(url, 'avideoIframe', 0);