[mirotalksfu] - improvements

هذا الالتزام موجود في:
Miroslav Pejic
2024-08-04 13:17:07 +02:00
الأصل 40c6fb5ce1
التزام dc4d06178f
2 ملفات معدلة مع 16 إضافات و3 حذوفات

عرض الملف

@@ -2110,7 +2110,7 @@ function handleMediaError(mediaType, err, redirectURL = false) {
);
}
function popupHtmlMessage(icon, imageUrl, title, html, position, redirectURL = false) {
function popupHtmlMessage(icon, imageUrl, title, html, position, redirectURL = false, reloadPage = false) {
Swal.fire({
allowOutsideClick: false,
allowEscapeKey: false,
@@ -2123,8 +2123,13 @@ function popupHtmlMessage(icon, imageUrl, title, html, position, redirectURL = f
showClass: { popup: 'animate__animated animate__fadeInDown' },
hideClass: { popup: 'animate__animated animate__fadeOutUp' },
}).then((result) => {
if (result.isConfirmed && redirectURL) {
openURL(redirectURL);
if (result.isConfirmed) {
if (redirectURL) {
return openURL(redirectURL);
}
if (reloadPage) {
location.href = location.href;
}
}
});
}