[mirotalksfu] - fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2025-08-08 01:41:18 +02:00
الأصل 1d88a19c03
التزام 2879df4fe9

عرض الملف

@@ -220,16 +220,14 @@ function customizeApp() {
// WIDGET customize // WIDGET customize
function customizeWidget() { function customizeWidget() {
if (BRAND.widget?.enabled) { if (BRAND.widget?.enabled) {
window.addEventListener('DOMContentLoaded', function () { if (typeof MiroTalkWidget !== 'undefined') {
if (typeof MiroTalkWidget !== 'undefined') { const domain = window.location.host;
const domain = window.location.host; const roomId = 'support-room';
const roomId = 'support-room'; const userName = 'guest-' + Math.floor(Math.random() * 10000);
const userName = 'guest-' + Math.floor(Math.random() * 10000); new MiroTalkWidget(domain, roomId, userName, BRAND.widget);
new MiroTalkWidget(domain, roomId, userName, BRAND.widget); } else {
} else { console.error('MiroTalkWidget is not defined. Please check Widget.js loading.');
console.error('MiroTalkWidget is not defined. Please check Widget.js loading.'); }
}
});
} }
} }