Skip to content

Commit

Permalink
[mirotalksfu] - improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Aug 4, 2024
1 parent 40c6fb5 commit dc4d061
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 8 additions & 3 deletions public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
}
}
});
}
Expand Down
8 changes: 8 additions & 0 deletions public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ class RoomClient {
'Producer Transport disconnected',
'Check Your Network Connectivity (Restarted ICE)',
'center',
false,
true
);
*/
break;
Expand All @@ -718,6 +720,8 @@ class RoomClient {
'Producer Transport failed',
'Check Your Network Connectivity',
'center',
false,
true,
);
break;
default:
Expand Down Expand Up @@ -787,6 +791,8 @@ class RoomClient {
'Consumer Transport disconnected',
'Check Your Network Connectivity (Restarted ICE)',
'center',
false,
true
);
*/
case 'failed':
Expand All @@ -800,6 +806,8 @@ class RoomClient {
'Consumer Transport failed',
'Check Your Network Connectivity',
'center',
false,
true,
);
break;
default:
Expand Down

0 comments on commit dc4d061

Please sign in to comment.