[mirotalksfu] - fix typo
هذا الالتزام موجود في:
@@ -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.');
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم