[mirotalk] - fix widget checkOnlineStatus

This commit is contained in:
Miroslav Pejic
2025-11-08 22:04:37 +01:00
parent 0b270368dd
commit 00e0d9e270
7 changed files with 23 additions and 11 deletions
+2 -2
View File
@@ -708,7 +708,7 @@
}
try {
const response = await fetch(`https://${CONFIG.domain}/isRoomActive`, {
const response = await fetch(`https://${CONFIG.domain}/isWidgetRoomActive`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ roomId: CONFIG.roomId }),
@@ -719,7 +719,7 @@
}
const data = await response.json();
const online = data.message && data.message !== 'Unauthorized';
const online = data.message;
this.updateStatus(online);
} catch (error) {
console.warn('Failed to check room status:', error.message);