1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Avoid error

This commit is contained in:
Daniel 2022-01-03 18:24:58 -03:00
parent 0f08da6c1f
commit 5839012904

View file

@ -1298,7 +1298,11 @@ function avideoModalIframeFullScreen(url) {
if (!avideoModalIframeFullScreenOriginalURL) {
avideoModalIframeFullScreenOriginalURL = document.location.href;
}
window.history.pushState("", "", url);
try {
window.history.pushState("", "", url);
} catch (e) {
}
avideoModalIframeWithClassName(url, 'swal-modal-iframe-full');
}