[mirotalksfu] - update dep, fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2025-04-23 23:07:41 +02:00
الأصل 7827c56759
التزام 4341874db4
5 ملفات معدلة مع 20 إضافات و16 حذوفات

عرض الملف

@@ -64,7 +64,7 @@ let BRAND = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: '<strong>WebRTC SFU v1.8.26</strong>',
title: '<strong>WebRTC SFU v1.8.28</strong>',
html: `
<button
id="support-button"

عرض الملف

@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.8.26
* @version 1.8.28
*
*/
@@ -5351,7 +5351,7 @@ function showAbout() {
position: 'center',
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
customClass: { image: 'img-about' },
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.26',
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.28',
html: `
<br />
<div id="about">

عرض الملف

@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.8.26
* @version 1.8.28
*
*/
@@ -1284,7 +1284,7 @@ class RoomClient {
console.log('Disconnected. Attempting to reconnect...');
this.exit(true);
let reconnectAlert;
let reconnectAlert = null;
// Helper functions
const showReconnectAlert = () => {
@@ -1351,10 +1351,12 @@ class RoomClient {
this.socket.on('connect_error', () => {
if (this.reconnectAttempts < this.maxReconnectAttempts) {
this.reconnectAttempts++;
reconnectAlert.update({
title: 'Reconnect',
text: `Attempting to reconnect ${this.reconnectAttempts}...`,
});
if (reconnectAlert) {
reconnectAlert.update({
title: 'Reconnect',
text: `Attempting to reconnect ${this.reconnectAttempts}...`,
});
}
} else {
if (!serverAwayShown) {
showServerAwayMessage();
@@ -1371,10 +1373,12 @@ class RoomClient {
const delay = Math.min(this.reconnectInterval * this.reconnectAttempts, this.maxReconnectInterval);
reconnectAlert.update({
title: 'Reconnect',
text: `Attempting to reconnect in ${delay / 1000}s...`,
});
if (reconnectAlert) {
reconnectAlert.update({
title: 'Reconnect',
text: `Attempting to reconnect in ${delay / 1000}s...`,
});
}
reconnectTimer = setTimeout(() => {
this.socket.connect();