diff --git a/public/js/Room.js b/public/js/Room.js index 5b8f1c30..57c1a891 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -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; + } } }); } diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 91270ea0..e2fd214a 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -704,6 +704,8 @@ class RoomClient { 'Producer Transport disconnected', 'Check Your Network Connectivity (Restarted ICE)', 'center', + false, + true ); */ break; @@ -718,6 +720,8 @@ class RoomClient { 'Producer Transport failed', 'Check Your Network Connectivity', 'center', + false, + true, ); break; default: @@ -787,6 +791,8 @@ class RoomClient { 'Consumer Transport disconnected', 'Check Your Network Connectivity (Restarted ICE)', 'center', + false, + true ); */ case 'failed': @@ -800,6 +806,8 @@ class RoomClient { 'Consumer Transport failed', 'Check Your Network Connectivity', 'center', + false, + true, ); break; default: