[mirotalksfu] - improve tippy

هذا الالتزام موجود في:
Miroslav Pejic
2023-09-26 19:32:03 +02:00
الأصل fb16bc49e4
التزام 4f33141e3e
2 ملفات معدلة مع 45 إضافات و30 حذوفات

عرض الملف

@@ -2158,11 +2158,19 @@ class RoomClient {
setTippy(elem, content, placement, allowHTML = false) {
if (DetectRTC.isMobileDevice) return;
tippy(this.getId(elem), {
content: content,
placement: placement,
allowHTML: allowHTML,
});
const element = this.getId(elem);
if (element) {
if (element._tippy) {
element._tippy.destroy();
}
tippy(element, {
content: content,
placement: placement,
allowHTML: allowHTML,
});
} else {
console.warn('setTippy element not found with content', content);
}
}
setVideoAvatarImgName(elemId, peer_name) {